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

a11y | Fonts are not scaling on magnification #1452

Closed
scottqueen-bixal opened this issue Jun 17, 2024 · 2 comments · Fixed by #1470
Closed

a11y | Fonts are not scaling on magnification #1452

scottqueen-bixal opened this issue Jun 17, 2024 · 2 comments · Fixed by #1470
Assignees
Labels
bug Something isn't working
Milestone

Comments

@scottqueen-bixal
Copy link
Collaborator

What's expected

Font sizes should adjust proportionately to relative scale

This could impact scaling issues when users zoom/magnify the screen

reference: https://www.w3.org/WAI/WCAG21/Understanding/resize-text.html

What happened

Beta release has fixed font sizes using an absolute length unit, px

Attachments
Image

How to replicate

Chrome: Open Settings or Preferences and change the font size to Very large or Very small.

Example at "Very Large"
Image

@scottqueen-bixal scottqueen-bixal added the bug Something isn't working label Jun 17, 2024
@scottqueen-bixal scottqueen-bixal added this to the v0.5.0.beta.1 milestone Jun 17, 2024
@scottqueen-bixal scottqueen-bixal self-assigned this Jun 17, 2024
@scottqueen-bixal
Copy link
Collaborator Author

// USAGov font ratio is based on 16px
// for example h1 @ 2.44rem = 39.04px

Image

// Our conversions
// 36px = 2.25rem
// 32px = 2rem
// 24px = 1.5rem
// 22px = 1.375rem
// 20px = 1.25rem
// 17px = 1.063rem
// 16px = 1rem
// 15px = 0.938rem

@angelina-smith
Copy link
Collaborator

Reviewed this on https://bf-cms-dev.bxdev.net/benefit-finder/death# environment and it looks good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants