-
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): Remove default elementType value for Headi…
…ng component
- Loading branch information
1 parent
b28bc87
commit c81309d
Showing
7 changed files
with
19 additions
and
23 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
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
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
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
2 changes: 1 addition & 1 deletion
2
packages/web-twig/src/Resources/components/Heading/stories/HeadingDefault.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,3 +1,3 @@ | ||
<Heading>Heading</Heading> | ||
<Heading elementType="div">Heading</Heading> | ||
|
||
<Heading elementType="h2">Heading H2</Heading> |
8 changes: 4 additions & 4 deletions
8
packages/web-twig/src/Resources/components/Heading/stories/HeadingEmphasis.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,7 +1,7 @@ | ||
<Heading emphasis="regular">Heading regular</Heading> | ||
<Heading elementType="h2" emphasis="regular">Heading regular</Heading> | ||
|
||
<Heading emphasis="semibold">Heading semibold</Heading> | ||
<Heading elementType="h2" emphasis="semibold">Heading semibold</Heading> | ||
|
||
<Heading emphasis="bold">Heading bold</Heading> | ||
<Heading elementType="h2" emphasis="bold">Heading bold</Heading> | ||
|
||
<Heading emphasis="italic">Heading italic</Heading> | ||
<Heading elementType="h2" emphasis="italic">Heading italic</Heading> |
2 changes: 1 addition & 1 deletion
2
packages/web-twig/src/Resources/components/Heading/stories/HeadingSizes.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,5 +1,5 @@ | ||
{% set sizes = [ 'xsmall', 'small', 'medium', 'large', 'xlarge' ] %} | ||
|
||
{% for size in sizes %} | ||
<Heading size={{ size }}>Heading {{ size }}</Heading> | ||
<Heading elementType="h2" size={{ size }}>Heading {{ size }}</Heading> | ||
{% endfor %} |