This repository was archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Inconsistencies in the grid system #5576
Copy link
Copy link
Closed
Labels
needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communityThe cause of this issue is not well understood and needs to be investigated by the team or communitypr: merge readyThis PR is ready for a caretaker to reviewThis PR is ready for a caretaker to review
Milestone
Description
I've been having trouble with the grid system breakpoints and it seems that it's been used inconsistently through the code.
My understanding is that this is the correct usage:
@media (max-width: $layout-breakpoint-sm - 1) { ... }
@media (min-width: $layout-breakpoint-sm) and (max-width: $layout-breakpoint-md - 1) { ... }
@media (min-width: $layout-breakpoint-md) and (max-width: $layout-breakpoint-lg - 1) { ... }
@media (min-width: $layout-breakpoint-lg) { ... }
But there are places in code where such code can be found:
@media (max-width: $layout-breakpoint-sm) { ... }
@media (min-width: $layout-breakpoint-sm) and (max-width: $layout-breakpoint-md) { ... }
@media (min-width: $layout-breakpoint-md) and (max-width: $layout-breakpoint-lg) { ... }
@media (min-width: $layout-breakpoint-lg) { ... }
It is both indeterministic and, in my opinion, wrong. The particular example is from bottom-sheet.scss, but it can be others as well (toolbar, toast, ...).
It would be really nice if this would be consolidated.
Metadata
Metadata
Assignees
Labels
needs: investigationThe cause of this issue is not well understood and needs to be investigated by the team or communityThe cause of this issue is not well understood and needs to be investigated by the team or communitypr: merge readyThis PR is ready for a caretaker to reviewThis PR is ready for a caretaker to review