Skip to content

Commit

Permalink
fix(@clayui/css): Grid generating container-max-width-* classes sho…
Browse files Browse the repository at this point in the history
…uld work with Custom Properties
  • Loading branch information
pat270 committed Jul 28, 2021
1 parent 3a8ffe2 commit b12dbf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/clay-css/src/scss/components/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
}

@each $name, $width in $grid-breakpoints {
@if ($container-max-width > $width or $breakpoint == $name) {
$_container-max-width: clay-get-fallback($container-max-width);
$_width: clay-get-fallback($width);

@if ($_container-max-width > $_width or $breakpoint == $name) {
.container#{breakpoint-infix($name, $grid-breakpoints)} {
@extend %responsive-container-#{$breakpoint} !optional;
}
Expand Down

0 comments on commit b12dbf5

Please sign in to comment.