Skip to content

Commit

Permalink
Merge pull request #2523 from hashicorp/fix-sw-grid
Browse files Browse the repository at this point in the history
Showcase - Small fixes for `Shw::Grid` component
  • Loading branch information
didoo authored Oct 29, 2024
2 parents d8cc359 + d42a1f3 commit 9130bb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions showcase/app/components/shw/grid/index.gts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import type { ShwGridItemSignature } from './item';

interface ShwGridSignature {
Args: {
columns: 2 | 3 | 4 | 5 | 6 | 7;
columns: 1 | 2 | 3 | 4 | 5 | 6 | 7;
forceMinWidth?: boolean;
gap: string;
gap?: string;
grow?: boolean;
label?: string;
};
Expand Down
4 changes: 4 additions & 0 deletions showcase/app/styles/showcase-components/grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
flex-wrap: wrap;
gap: var(--shw-layout-gap-base);

.shw-grid--cols-1 > & {
grid-template-columns: 1fr;
}

.shw-grid--cols-2 > & {
grid-template-columns: repeat(2, 1fr);
}
Expand Down

0 comments on commit 9130bb8

Please sign in to comment.