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

Consider dropping 'px' postfixing for numeric CSS properties #25

Open
kripod opened this issue Jul 12, 2020 · 0 comments
Open

Consider dropping 'px' postfixing for numeric CSS properties #25

kripod opened this issue Jul 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@kripod
Copy link
Owner

kripod commented Jul 12, 2020

Motivation

After a discussion on a React issue and seeing where Preact 11 is steering:

adding px is definitely a historial feature that isn't as relevant these days. Folks should be opting to use relative units rather than static units (like px), otherwise they break their app/website to users who use zooming tools or accessibility tooling – invaliding Web Content Accessibility Guidelines.

I've seen it confuse new developers first-hand when switching between writing CSS and declaring inline styles.

@kripod kripod added the enhancement New feature or request label Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant