Skip to content

Commit bcc5b4e

Browse files
dchyunzamoore
authored andcommitted
Website: Fix focus and brand gradient token names in color palette (#3267)
1 parent 26697ea commit bcc5b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/foundations/colors/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class Colors extends Component {
3636
colors['semantic'][context] = [];
3737
}
3838
const tokenObj = {
39-
colorName: `${token.path[1]}-${token.path[2]}`,
39+
colorName: token.path.slice(1).join('-'),
4040
cssVariable: `--${token.name}`,
4141
// note: we prefix `value` with `$` because we're using the DTCG format
4242
value: token.$value,
@@ -52,7 +52,7 @@ export default class Colors extends Component {
5252
colors['branding'][brand] = [];
5353
}
5454
colors['branding'][brand].push({
55-
colorName: `${token.path[1]}-${token.path[2]}`,
55+
colorName: token.path.slice(1).join('-'),
5656
cssVariable: `--${token.name}`,
5757
// note: we prefix `value` with `$` because we're using the DTCG format
5858
value: token.$value,

0 commit comments

Comments
 (0)