Skip to content

Commit a02bb04

Browse files
committed
Add 'New' status badge to Patterns nav item
1 parent 16f5a36 commit a02bb04

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.changeset/pretty-news-happen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'polaris.shopify.com': patch
3+
---
4+
5+
Add 'New' status badge to Patterns nav item

polaris.shopify.com/content/patterns/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ description: Design patterns help ensure consistent behavior across the Shopify
44
icon: BehaviorMajor
55
order: 6
66
newSection: true
7+
status:
8+
value: New
9+
message: ''
710
---
811

912
![Design system building blocks, with pattern block highlighted.](/images/foundations/patterns/patterns@2x.png)

polaris.shopify.com/src/components/StatusBadge/StatusBadge.module.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
}
1717

1818
&[data-value='beta'],
19-
&[data-value='information'] {
19+
&[data-value='information'],
20+
&[data-value='new'] {
2021
background: var(--surface-information);
2122
}
2223
}

polaris.shopify.com/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export enum Breakpoints {
151151
}
152152

153153
export enum StatusName {
154+
New = 'New',
154155
Deprecated = 'Deprecated',
155156
Alpha = 'Alpha',
156157
Beta = 'Beta',

0 commit comments

Comments
 (0)