-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[RFC] Consider renaming "xs" breakpoint to "base" #26168
Comments
I think just naming it |
|
Maybe |
|
I remember that at the beginning it happened to me a couple of times when I was migrating the demos to the emotion that I made a mistake when writing. I was confused between |
This comment has been minimized.
This comment has been minimized.
I can't count know how many times I typed |
From what I understand, so far, we have two valid keys proposals for the name: ❌ I think that |
|
@eps1lon Sorry for the late reply
<Paper sx={{ padding: { zero: 1, md: 8 } }}> and translate it to this CSS? padding: 8px;
@media (max-width: 899.95px) {
padding: 64px;
} From my perspective, what we read in the code doesn't match the behavior. When I read the code, it suggests to me that for a large screen, padding is 8px.
I have added the v6 milestone, but if we move forward, we could likely move in smaller, without breaking changes first. |
I have no idea why we talk about a change in behavior here. This is about giving |
Summary 💡
In order for the system to work well, it requires the first breakpoint to be
0px
. This is required in order for the min-width media query logic to trigger correctly.The use of
xs
to name this baseline might be wrong, evermore to allow developers to customize it.Motivation 🔦
The discussion started at #26135 (comment). We noticed the current customization demo is wrong:
https://mui.com/material-ui/customization/breakpoints/#custom-breakpoints
It misses the
mobile: 0
breakpoint.Maybe it would make sense to remove
xs
from the theme and rename it differently, like_
, orbase
.It's also to be noted that
xs
is the anagram ofsx
, which can create confusion when reading it: #34948.Another request from a user:
Complains
Benchmarks
_
The text was updated successfully, but these errors were encountered: