File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
website/docs/foundations/colors Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments