-
Notifications
You must be signed in to change notification settings - Fork 788
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
Override browser default tag based styles that use EM units #1888
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
It doesn't look like normalize now. Its set of opinionated styles has nothing with initial behavior of normalize - makes browsers render all elements more consistently
I think if we do changes which are different from notmalize.css we need to do them in other place |
yes which is why the opinionated styles are in a separate file, but we use them from normalize ... should probably merge them together in a different way instead of using reset directly from normalize, but that's not new here .. this was done before ... may need to change this @TrySound |
@taylornowotny separate problem, unrelated to this PR |
After a discussion we decided to not have margins by default at all |
let's do it later |
...baseStyle, | ||
...presets.blockquote, | ||
] satisfies Styles; | ||
export const figure = [...baseStyle, ...presets.margins] satisfies Styles; |
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.
might not need margins, but only vertical margins, need to check browser defaults there
Description
EM seems to be challenging to use and people tend to use PX or REM instead ... I changed those values that come with EM by default from browsers to the values Webflow is using.
I am not sure why webflow is doing certain things: e.g. paragraphs have marginTop 0, h1-3 have marginTop 20; marginBottom: 10, h4- have marginTop 10 ; marginBottom 20
These seem to be inconsistent and weird choices.
Code Review
Before requesting a review
Before merging
.env.example
and thebuilder/env-check.js
if mandatory