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

fix(type): update reset to use relative unit #5541

Merged
merged 3 commits into from
Mar 5, 2020
Merged

Conversation

joshblack
Copy link
Contributor

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 of 100%

Removed

Testing / Reviewing

  • In your browser of choice, change your text size preferences to large and view the preview to verify that the components change instead of staying the same

@joshblack joshblack requested a review from a team as a code owner March 5, 2020 03:27
@ghost ghost requested review from asudoh and tw15egan March 5, 2020 03:27
@joshblack
Copy link
Contributor Author

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.

@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for carbon-components-react ready!

Built with commit f030337

https://deploy-preview-5541--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Mar 5, 2020

Deploy preview for carbon-elements ready!

Built with commit f030337

https://deploy-preview-5541--carbon-elements.netlify.com

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

👍 ✅

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @joshblack!

@joshblack joshblack merged commit 7e0ff04 into master Mar 5, 2020
@joshblack joshblack deleted the joshblack-patch-2 branch March 5, 2020 22:19
joshblack added a commit to joshblack/carbon that referenced this pull request Mar 10, 2020
* fix(type): update reset to use relative unit

* chore(format): run prettier

Co-authored-by: TJ Egan <[email protected]>
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.

3 participants