Skip to content

Commit 055c96d

Browse files
authored
fix(live demo): update live labels and add feature flag toggle (carbon-design-system#4780)
1 parent 8799446 commit 055c96d

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

src/pages/components/structured-list/code.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ structured list to always be visible, even when not selected.
9191
variant: 'components-structuredlist--selection',
9292
},
9393
{
94-
label: 'Selectable with improved accessibility (unstable)',
94+
label: 'Selectable with improved accessibility (preview)',
9595
variant: 'components-structuredlist-feature-flag--selection',
9696
},
9797
]}

src/pages/components/structured-list/usage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ definitions.
4848
variant: 'components-structuredlist--selection',
4949
},
5050
{
51-
label: 'Selectable with improved accessibility (unstable)',
51+
label: 'Selectable with improved accessibility (preview)',
5252
variant: 'components-structuredlist-feature-flag--selection',
5353
},
5454
]}

src/pages/components/tile/code.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ feature flags will become the default version of the component.
120120
variant: 'components-tile--selectable',
121121
},
122122
{
123-
label: 'Clickable with improved contrast (unstable)',
123+
label: 'Clickable with improved contrast (preview)',
124124
variant: 'components-tile-feature-flag--clickable',
125125
},
126126
{
127-
label: 'Expandable with improved contrast (unstable)',
127+
label: 'Expandable with improved contrast (preview)',
128128
variant: 'components-tile-feature-flag--expandable',
129129
},
130130
{
131-
label: 'Multiselect with improved contrast (unstable)',
131+
label: 'Multiselect with improved contrast (preview)',
132132
variant: 'components-tile-feature-flag--multi-select',
133133
},
134134
{
135-
label: 'Radio with improved contrast (unstable)',
135+
label: 'Radio with improved contrast (preview)',
136136
variant: 'components-tile-feature-flag--radio',
137137
},
138138
{
139-
label: 'Selectable with improved contrast (unstable)',
139+
label: 'Selectable with improved contrast (preview)',
140140
variant: 'components-tile-feature-flag--selectable',
141141
},
142142
{

src/pages/components/tile/usage.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,23 @@ explainability feature when AI is present in the component.
8181
variant: 'components-tile--selectable',
8282
},
8383
{
84-
label: 'Clickable with improved contrast (unstable)',
84+
label: 'Clickable with improved contrast (preview)',
8585
variant: 'components-tile-feature-flag--clickable',
8686
},
8787
{
88-
label: 'Expandable with improved contrast (unstable)',
88+
label: 'Expandable with improved contrast (preview)',
8989
variant: 'components-tile-feature-flag--expandable',
9090
},
9191
{
92-
label: 'Multiselect with improved contrast (unstable)',
92+
label: 'Multiselect with improved contrast (preview)',
9393
variant: 'components-tile-feature-flag--multi-select',
9494
},
9595
{
96-
label: 'Radio with improved contrast (unstable)',
96+
label: 'Radio with improved contrast (preview)',
9797
variant: 'components-tile-feature-flag--radio',
9898
},
9999
{
100-
label: 'Selectable with improved contrast (unstable)',
100+
label: 'Selectable with improved contrast (preview)',
101101
variant: 'components-tile-feature-flag--selectable',
102102
},
103103
{

src/pages/components/toggle/code.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,16 @@ the toggle label and its container to be 8px instead of 16px.
8080
url="https://react.carbondesignsystem.com"
8181
variants={[
8282
{
83-
label: 'Default',
83+
label: 'Default toggle',
8484
variant: 'components-toggle--default',
8585
},
8686
{
8787
label: 'Small toggle',
8888
variant: 'components-toggle--small-toggle',
8989
},
90+
{
91+
label: 'Default toggle (preview)',
92+
variant: 'components-toggle-feature-flag--toggle',
93+
},
9094
]}
9195
/>

src/pages/components/toggle/usage.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,17 @@ commonly used for “on/off” switches.
3939
url="https://react.carbondesignsystem.com"
4040
variants={[
4141
{
42-
label: 'Default',
42+
label: 'Default toggle',
4343
variant: 'components-toggle--default',
4444
},
4545
{
4646
label: 'Small toggle',
4747
variant: 'components-toggle--small-toggle',
4848
},
49+
{
50+
label: 'Default toggle (preview)',
51+
variant: 'components-toggle-feature-flag--toggle',
52+
},
4953
]}
5054
/>
5155

0 commit comments

Comments
 (0)