@@ -4,8 +4,10 @@ import {
44 Description ,
55 Meta ,
66 Source ,
7+ Unstyled ,
78} from " @storybook/addon-docs/blocks" ;
89
10+ import Banner from " ../Banner/Banner" ;
911import ComponentChangelogTable from " ../../utils/ComponentChangelogTable" ;
1012import * as TagSetStories from " ./TagSet.stories" ;
1113import Link from " ../Link/Link" ;
@@ -19,7 +21,7 @@ import ComponentDocsHeader from "../../utils/components/ComponentDocsHeader";
1921 componentName = " TagSet"
2022 summary = " Group of tags that allow content to be explored or filtered"
2123 versionAdded = " 1.2.0"
22- versionLatest = " 4.0.0 "
24+ versionLatest = " 4.1.3 "
2325/>
2426
2527<Canvas of = { TagSetStories .ExploreVariant } />
@@ -31,6 +33,7 @@ import ComponentDocsHeader from "../../utils/components/ComponentDocsHeader";
3133- [ Accessibility] ( #accessibility )
3234- [ Explore variant] ( #explore-variant )
3335- [ Filter variant] ( #filter-variant )
36+ - [ Semantic variants] ( #semantic-variants )
3437- [ Examples] ( #examples )
3538- [ Changelog] ( #changelog )
3639
@@ -200,7 +203,7 @@ consuming application may need for logic filtering.
200203<Source
201204 code = { `
202205 const tagSetData = [
203- { iconName: "utilityAccountFilled", label: "Abbey Road", id: "abby -road" },
206+ { iconName: "utilityAccountFilled", label: "Abbey Road", id: "abbey -road" },
204207 { iconName: "actionLaunch", label: "The Beatles", id: "the-beatles" },
205208 { iconName: "alertWarningOutline", label: "Revolver", id: "revolver" },
206209 { iconName: "check", label: "Sgt. Pepper's Lonely Hearts Club Band", id: "sgt-pepper" },
@@ -213,6 +216,26 @@ Resources:
213216
214217- [ W3C WAI-ARIA Button] ( https://www.w3.org/WAI/ARIA/apg/patterns/button/ )
215218
219+ ## Semantic variants
220+
221+ Semantic variants align with specific uses.
222+
223+ <Unstyled >
224+ <Banner
225+ content = {
226+ <>
227+ <strong >RECOMMENDATION:</strong > Avoid using the "informative" variant
228+ for "filter" tags as the colors are similar to the default colors of
229+ "explore" tags and imply that tags are links.
230+ </>
231+ }
232+ my = " s"
233+ variant = " recommendation"
234+ />
235+ </Unstyled >
236+
237+ <Canvas of = { TagSetStories .SemanticVariants } />
238+
216239## Examples
217240
218241<Canvas of = { TagSetStories .FormattingExamples } />
0 commit comments