Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Allow zero row gap for Grid #1040

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

alimpens
Copy link
Contributor

No description provided.

@@ -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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes the row gap by default, which is not what we want. We rely on the vertical gap being the same as the horizontal one by default, e.g. when moving cells around respponsively and in grids of cards or top task buttons.

@@ -48,7 +48,7 @@ export type GridProps = {
*/
compact?: boolean
/** The amount of vertical whitespace between rows of the grid. */
gapVertical?: 'small' | 'large'
gapVertical?: 'small' | 'medium' | 'large'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I think medium should be the default, and this prop should accept a none value.

@github-actions github-actions bot temporarily deployed to demo-DES-540-allow-zero-row-gap-grid January 12, 2024 16:02 Destroyed
@github-actions github-actions bot temporarily deployed to demo-DES-540-allow-zero-row-gap-grid January 12, 2024 17:44 Destroyed
@VincentSmedinga VincentSmedinga merged commit 6ef7b08 into develop Jan 12, 2024
4 checks passed
@VincentSmedinga VincentSmedinga deleted the feature/DES-540-allow-zero-row-gap-grid branch January 12, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants