This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Inconsistencies in the grid system #5576
Closed
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.