Skip to content

Commit

Permalink
Merge pull request #36 from etchteam/feat/ETCH-456-spacing-none
Browse files Browse the repository at this point in the history
feat/ETCH-465 add none option to spacing
  • Loading branch information
mergify[bot] authored Feb 26, 2024
2 parents 217fc6a + a616622 commit 5725b19
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/composition/Spacing/Spacing.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/* top */
.diamond-spacing-top-none {
margin-top: 0;
}

.diamond-spacing-top-xs {
margin-top: var(--diamond-spacing-xs);
Expand Down Expand Up @@ -33,6 +36,9 @@
}

/* bottom */
.diamond-spacing-bottom-none {
margin-bottom: 0;
}

.diamond-spacing-bottom-xs {
margin-bottom: var(--diamond-spacing-xs);
Expand Down
12 changes: 11 additions & 1 deletion components/composition/Spacing/Spacing.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ export default {
argTypes: {
size: {
control: { type: 'select' },
options: ['xs', 'sm', 'md', 'lg', 'xl', 'fluid', 'fluid-sm', 'fluid-lg'],
options: [
'none',
'xs',
'sm',
'md',
'lg',
'xl',
'fluid',
'fluid-sm',
'fluid-lg',
],
},
},
};
Expand Down

0 comments on commit 5725b19

Please sign in to comment.