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

Remove redundant line-height from body #15212

Merged
merged 2 commits into from
Mar 18, 2025

Conversation

MartijnCuppens
Copy link
Contributor

@MartijnCuppens MartijnCuppens commented Nov 27, 2024

It was added in #2729 to override line heights set on the body by modern-normalize. However, it appears that modern-normalize never included any line-height definitions—only a font-family rule was present.

Ref: https://github.com/sindresorhus/modern-normalize/blob/v1.1.0/modern-normalize.css

@philipp-spiess
Copy link
Member

However, it appears that modern-normalize never included any line-height definitions—only a font-family rule was present.

Maybe I misunderstand something but there's a line-height rule here: https://github.com/sindresorhus/modern-normalize/blob/v1.1.0/modern-normalize.css#L33

@MartijnCuppens
Copy link
Contributor Author

Yup, and the <body> inherits that line height by default, there's no need to explicitly set this.

MartijnCuppens and others added 2 commits March 18, 2025 12:01

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

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

Thanks! This looks good to me. Did some more testing across Safari/Chrome/Firefox just in case.

@philipp-spiess philipp-spiess merged commit 1564bf0 into tailwindlabs:main Mar 18, 2025
5 checks passed
@MartijnCuppens MartijnCuppens deleted the rm-body-line-height branch March 18, 2025 17:46
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.

None yet

2 participants