Skip to content

Commit

Permalink
BREAKING CHANGE(web-react): Set Stack default spacing to zero #DS-741
Browse files Browse the repository at this point in the history
The feature class enabling this behavior was removed.

 ## Migration Guide

If you need the `Stack` to have a spacing, add
`hasSpacing` prop. By default, `Stack` has zero
inner spacing.

- `<Stack …>` → `<Stack hasSpacing …>`

If you already used the feature class, you can remove it
and don't need to do any other changes.

Please refer back to this guide or reach out to our team
if you encounter any issues during migration.
  • Loading branch information
crishpeen authored and literat committed Jul 21, 2023
1 parent 096b9a5 commit 6cdd8af
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .storybook/decorators/BodyClassDecorator.js

This file was deleted.

2 changes: 0 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import SpiritTheme from './spirit.theme';
import '../.storybook/assets/stylesheets/index.scss';
import { IconGlobalDecorator } from './decorators/IconGlobalDecorator';
import { BodyClassDecorator } from './decorators/BodyClassDecorator';

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand All @@ -23,5 +22,4 @@ export const parameters = {

export const decorators = [
IconGlobalDecorator,
BodyClassDecorator,
];
1 change: 0 additions & 1 deletion packages/web-react/src/components/Stack/stories/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Story.args = {
</>
),
elementType: 'ul',
hasSpacing: true,
};

export default Story;

0 comments on commit 6cdd8af

Please sign in to comment.