-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2484 from boltdesignsystem/feature/DS-232-Update-…
…Headline-Numbered-variation-purple-option DS-232 Update headline numbered variation "purple" option
- Loading branch information
Showing
6 changed files
with
104 additions
and
51 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
21 changes: 21 additions & 0 deletions
21
docs-site/src/pages/pattern-lab/_patterns/999-tests/headline/headline-numbered.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,21 @@ | ||
{% set schema = bolt.data.components['@bolt-components-headline'].schema %} | ||
|
||
<h2>New prop <code>number_text</code> usage.</h2> | ||
{% for item in schema.properties.number_color.enum %} | ||
{% include '@bolt-components-headline/headline.twig' with { | ||
size: 'xxlarge', | ||
text: 'Numbered Headline', | ||
number_text: loop.index, | ||
} only %} | ||
{% endfor %} | ||
|
||
<h2>New prop <code>number_color</code> usage.</h2> | ||
<p>Note that the new color violet - <code>var(--bolt-color-violet)</code> replaced color purple - <code>var(--bolt-color-berry)</code>.</p> | ||
{% for item in schema.properties.number_color.enum %} | ||
{% include '@bolt-components-headline/headline.twig' with { | ||
size: 'xxlarge', | ||
text: 'Numbered Headline, ' ~ 'color ' ~ item ~ ' <code>var(--bolt-color-'~ item ~')</code>', | ||
number_color: item, | ||
number_text: range('A','Z')[loop.index0], | ||
} only %} | ||
{% endfor %} |
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