-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[v4] Switch default breakpoints to rem #13469
Conversation
Yikes, not sure how I missed those tests. Fixing now. |
I'm getting a bunch of indentation-related changes between the test snapshots and the test results, i.e. - ::file-selector-button {
- appearance: button;
- }
+ ::file-selector-button {
+ appearance: button;
+ } Any ideas how to address this? Sorry if it's obvious, I haven't used vitest before. |
No worries fixed them! I usually just run |
@barvian @adamwathan No issue with |
@florianbouvot In my testing everything seems to work now in modern browsers, but the fastest way to find out if there's a problem is to release it 😄 |
I've used |
actually, breakpoints are relative to window viewport size, and not affected by font size or other contents on your page. in that situation, it is better to keep behavior as traditional, just keep it in It is of course works well to use |
This was seemingly considered/planned for v4 (mentioned by @adamwathan in #8378), but I didn't see it in the codebase. Feel free to delete this PR if plans changed! I used
rem
instead ofem
because the functionality seems to be the same, and it's consistent with the spacing and type scales.