Skip to content

Commit 8caefe9

Browse files
committed
docs(new): highlight components updated to v3
1 parent debef1f commit 8caefe9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/stacks-docs/_data/site-navigation.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@
4646
},
4747
{
4848
"title": "Icons",
49-
"url": "/product/foundation/icons/"
49+
"url": "/product/foundation/icons/",
50+
"new": true
5051
},
5152
{
5253
"title": "Illustrations",
53-
"url": "/product/foundation/spots/"
54+
"url": "/product/foundation/spots/",
55+
"new": true
5456
},
5557
{
5658
"title": "Typography",

packages/stacks-docs/_includes/navigation.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
{% for link in section.links %}
3636
<a class="s-navigation--item {% if page.url == link.url %}is-selected{% endif %}" href="{{ link.url | url }}" {% if page.url == link.url %}aria-current="page"{% endif %}>
3737
<span class="s-navigation--item-text" data-text="{{ link.title }}">{{ link.title }}</span>
38+
{% if link.new %}<span class="s-badge s-badge__sm s-badge__new ml4">new</span>{% endif %}
3839
</a>
3940
{% endfor %}
4041
{% endif %}

0 commit comments

Comments
 (0)