Replies: 6 comments 3 replies
-
I'd love to see this change too. It makes the entire design system more inclusive and resilient. The support for rems is good. Plus if we were concerned about compatibility in older browsers, we could write a Sass function to output a fallback, or write a simple one with |
Beta Was this translation helpful? Give feedback.
-
I think this could be part of our work to align closer with the USWDS which uses Rems for their design tokens https://designsystem.digital.gov/design-tokens/typesetting/font-size/ |
Beta Was this translation helpful? Give feedback.
-
This has been talked about on and off over the past few years. It's still on the table for discussion. I think the two main issues with implementing it right now are 1) the scope of the breaking change and 2) priorities for development. I think at a future date when we have more bandwidth for this kind of work, we should really consider this. |
Beta Was this translation helpful? Give feedback.
-
Hi all! I'm an accessibility engineer working on several websites for the Centers for Medicare & Medicaid Services. I noticed this discussion has grown quiet -- any updates? |
Beta Was this translation helpful? Give feedback.
-
DigitalGov recommends avoiding use:
|
Beta Was this translation helpful? Give feedback.
-
Hi @maggiewachs and @mgifford, this change was actually part of our v7 release 🎉 We're not completely finished with all the font updates we want to make, but we've switched from |
Beta Was this translation helpful? Give feedback.
-
Background
Currently the typography is set to px, ie:
$base-font-size: 16px !default;
View this here: https://github.com/CMSgov/design-system/blob/master/packages/design-system/src/styles/settings/variables/_type.scss
This causes problems for users such as those who set their preferred font sizes in-browser. By using px values vs. rems we override the user's preferred styling. This means we may be limiting the user being able to increase the text as needed.
Proposed change
Use rem values instead of px for typography and possibly margin/padding. Is it feasible to also change the spacing settings to be rem-specific? Or is there some unforeseen issue I'm unaware of.
Beta Was this translation helpful? Give feedback.
All reactions