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

Accept zero padding in rem #96

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ataideverton
Copy link

The way the code is written today makes the warning appear if you have a div with paddingTop: 0rem as if you were using a valued padding, this contribution seeks to fix that.

You can reproduce the problem by simply changing the prop on your old test from
padding: 20 to padding: 0rem

@adrienharnay
Copy link
Contributor

This PR seems reasonable and has test, can we get this merged @roginfarrer ? Thanks in advance!

@roginfarrer
Copy link
Owner

Can you provide a code example to reproduce? Which browser has this issue? I'm not certain about JSDOM, but my understanding is that getComputedStyle in the browser will always return a pixel value, regardless of the unit used originally.

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

3 participants