Skip to content

Commit

Permalink
Revert to medium as default
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Jan 12, 2024
1 parent 0623587 commit adc8399
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/css/src/components/grid/grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
--amsterdam-grid-gap: var(--amsterdam-grid-spacious-gap);
--amsterdam-grid-padding-inline: var(--amsterdam-grid-spacious-padding-inline);

column-gap: var(--amsterdam-grid-gap);
display: grid;
gap: var(--amsterdam-grid-gap);
grid-template-columns: repeat(var(--amsterdam-grid-column-count), 1fr);
padding-inline: var(--amsterdam-grid-padding-inline);

Expand All @@ -28,12 +28,12 @@
--amsterdam-grid-padding-inline: var(--amsterdam-grid-compact-padding-inline);
}

.amsterdam-grid--gap-vertical--small {
row-gap: calc(var(--amsterdam-grid-gap) / 2);
.amsterdam-grid--gap-vertical--none {
row-gap: initial;
}

.amsterdam-grid--gap-vertical--medium {
row-gap: var(--amsterdam-grid-gap);
.amsterdam-grid--gap-vertical--small {
row-gap: calc(var(--amsterdam-grid-gap) / 2);
}

.amsterdam-grid--gap-vertical--large {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/Grid/Grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type GridProps = {
*/
compact?: boolean
/** The amount of vertical whitespace between rows of the grid. */
gapVertical?: 'small' | 'medium' | 'large'
gapVertical?: 'none' | 'small' | 'large'
} & (GridPaddingVerticalProp | GridPaddingTopAndBottomProps) &
PropsWithChildren<HTMLAttributes<HTMLDivElement>>

Expand Down
4 changes: 2 additions & 2 deletions storybook/storybook-react/src/Grid/Grid.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const gridArgTypes = {
gapVertical: {
control: {
type: 'radio',
labels: { undefined: 'none', small: 'small', medium: 'medium', large: 'large' },
labels: { none: 'none', small: 'small', undefined: 'medium', large: 'large' },
},
options: [undefined, 'small', 'medium', 'large'],
options: ['none', 'small', undefined, 'large'],
},
paddingVertical: paddingArgType,
paddingTop: paddingArgType,
Expand Down

0 comments on commit adc8399

Please sign in to comment.