Skip to content

Make font weight inherit in preflight - #8078

Merged
adamwathan merged 3 commits into
tailwindlabs:masterfrom
bakura10:button-preflight
Apr 15, 2022
Merged

adamwathan merged 3 commits into
tailwindlabs:masterfrom
bakura10:button-preflight

Conversation

@bakura10

Copy link
Copy Markdown
Contributor

Hi,

This PR adds the font-weight inherit as the preflight to normalize it across browsers.

In our code we set a default font-weight of 500 on the body along other default font properties. However, for button elements, the font-weight is inherited by default on Chrome and Firefox:

image

However, on Safari, the font-weight is not inherited and default to 400:

image

This PR ensure the button is properly normalized so that everything renders consistently across browsers.

@adamwathan

Copy link
Copy Markdown
Contributor

Thanks! I think we can call this a bug fix since the behavior is currently inconsistent across browsers.

@adamwathan
adamwathan merged commit 206f1d6 into tailwindlabs:master Apr 15, 2022
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.

2 participants