Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding formatting for 200% magnification on standard screen #835

Conversation

AAloshine-scottlogic
Copy link
Contributor

@AAloshine-scottlogic AAloshine-scottlogic commented Feb 14, 2024

Description

added media break querys to decrease padding and margins so that the app fully displays all functions at 200% magnification.

Screenshots

image

ticket link:
#699

Copy link
Contributor

@dhinrichs-scottlogic dhinrichs-scottlogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's what I found so far:

  • On Chrome, when you magnify to 150% the Getting Started and Reset Progress buttons touch
  • Could you move the Level 1 2 3 section further to the left so that the Reset Progress doesn't wrap?

@chriswilty chriswilty linked an issue Feb 16, 2024 that may be closed by this pull request
Copy link
Member

@chriswilty chriswilty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't working as you intended, since switching to rems, so I assume you haven't run it locally to check... unless you're still doing so and have realised the issues!

The logic is basically inverted now at normal (100%) zoom, as in, the "render everything smaller and tighter" breakpoint kicks in from 600px width and upwards:

At 599px:
image

At 600px:
image

At 1480px (laptop screen):
image

And at 200% zoom on full laptop screen it still doesn't all fit:
image

If I rewind to your original code using 150DPI, it doesn't work well on my screen where I have my taskbar vertically:

image

And of course with DPI we don't get any allowance for (available) screen width nor basefont increases.

I think you'd be wise to start from scratch, and work out a breakpoint (in rem) where things become too tight, on a standard ScottLogic laptop (1920x1200). If need be, you can gracefully respond using a couple of breakpoints, though that might be beyond the scope of this ticket if you can get everything working nicely with a single change. Remember to test it with

  • zooming in/out, up to 200%
  • changing base font at 100% zoom only, up to 32px
  • Resizing the window

@AAloshine-scottlogic
Copy link
Contributor Author

Ah crumbs, youre right! i've been using the desktop to test the magnification but havent used my laptop since i usually have my code on the laptop screen and the website open on the desktop one. I'll go ahead and try and figure out the correct rem for the laptop screen then

@chriswilty
Copy link
Member

This is looking really good now 💎

Just the minor suggestions I chucked your way on teams, then very happy to approve ✅

Copy link
Member

@chriswilty chriswilty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely!

@chriswilty chriswilty dismissed dhinrichs-scottlogic’s stale review February 22, 2024 10:30

Changes now addressed, and Doro is off this week so cannot re-review

@AAloshine-scottlogic AAloshine-scottlogic merged commit 9a95a5e into ScottLogic:dev Feb 22, 2024
2 checks passed
chriswilty pushed a commit that referenced this pull request Apr 8, 2024
* adding formatting for 200% magnification on standard screen

* eslint+format

* added some padding to the right header area so the reset progress/getting started buttons dont touch at 150%

* converted from dpi to rem and added no wrap to the reset progress button

* lint

* changed media query to rem, magnification now working on laptop screen

* eslint changing from fill avaliable

* reverting uneccesary change

* added chris' changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust header and footer for text resizing [a11y]
3 participants