-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE(web-twig): Set
Stack
default spacing to zero #DS-741
The feature class enabling this behavior was removed. Improved demos. ## 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
Showing
12 changed files
with
77 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 9 additions & 15 deletions
24
packages/web-twig/src/Resources/components/Stack/stories/StackBlocks.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
<section class="docs-Section"> | ||
|
||
<h2 class="docs-Heading">Stacked Blocks</h2> | ||
|
||
<Stack elementType="ul"> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> | ||
|
||
</section> | ||
<Stack elementType="ul"> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> |
9 changes: 9 additions & 0 deletions
9
...rces/components/Stack/stories/StackBlocksWithInnerAndOuterDividersAndVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Stack elementType="ul" hasSpacing hasIntermediateDividers hasStartDivider hasEndDivider> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> |
9 changes: 9 additions & 0 deletions
9
...rc/Resources/components/Stack/stories/StackBlocksWithInnerDividersAndVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Stack elementType="ul" hasSpacing hasIntermediateDividers> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> |
9 changes: 9 additions & 0 deletions
9
...esources/components/Stack/stories/StackBlocksWithInnerDividersWithoutVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Stack elementType="ul" hasIntermediateDividers> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> |
9 changes: 9 additions & 0 deletions
9
packages/web-twig/src/Resources/components/Stack/stories/StackBlocksWithVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Stack elementType="ul" hasSpacing> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> |
14 changes: 4 additions & 10 deletions
14
packages/web-twig/src/Resources/components/Stack/stories/StackFormFields.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,4 @@ | ||
<section class="docs-Section"> | ||
|
||
<h2 class="docs-Heading">Stacked Form Fields</h2> | ||
|
||
<Stack> | ||
<TextField id="textfieldStack1" label="Label" name="textfieldStack1" placeholder="Placeholder" isRequired /> | ||
<TextField id="textfieldStack2" label="Label" name="textfieldStack2" placeholder="Placeholder" isRequired /> | ||
</Stack> | ||
|
||
</section> | ||
<Stack hasSpacing> | ||
<TextField id="textfieldStack1" label="Label" name="textfieldStack1" placeholder="Placeholder" isRequired /> | ||
<TextField id="textfieldStack2" label="Label" name="textfieldStack2" placeholder="Placeholder" isRequired /> | ||
</Stack> |
15 changes: 0 additions & 15 deletions
15
packages/web-twig/src/Resources/components/Stack/stories/StackV1NoDefaultGapBlocks.twig
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...s/Stack/stories/StackV1NoDefaultGapBlocksWithInnerAndOuterDividersAndVerticalSpacing.twig
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...omponents/Stack/stories/StackV1NoDefaultGapBlocksWithInnerDividersAndVerticalSpacing.twig
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...nents/Stack/stories/StackV1NoDefaultGapBlocksWithInnerDividersWithoutVerticalSpacing.twig
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
.../src/Resources/components/Stack/stories/StackV1NoDefaultGapBlocksWithVerticalSpacing.twig
This file was deleted.
Oops, something went wrong.