-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(type): update reset to use relative unit #5541
Conversation
cc @dakahn I believe this was an issue we inadvertently had with any kind of text resize scenarios. I believe this is how we fix it (along with using relative units for type) but just wanted to give you a heads up in case this isn't the right solution. |
Deploy preview for carbon-components-react ready! Built with commit f030337 https://deploy-preview-5541--carbon-components-react.netlify.com |
Deploy preview for carbon-elements ready! Built with commit f030337 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 ✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 - Thanks @joshblack!
* fix(type): update reset to use relative unit * chore(format): run prettier Co-authored-by: TJ Egan <[email protected]>
We have used a fixed value for the font-size in
html
which incidentally causes text preferences to not be honored when set by the browser. This change updates the type reset to use a relative unit,100%
, which should mean that our components respond appropriately when the user has browser preferences for text size.Changelog
New
Changed
html
now has a base font-size of100%
Removed
Testing / Reviewing