File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
website/docs/foundations/tokens Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const getAliases = (token, TOKENS_RAW) => {
1616 const path = token . path . join ( '.' ) ;
1717 return TOKENS_RAW . filter (
1818 // note: also the original value is prefixed with `$`
19- ( item ) => item . original . $value === `{${ path } .value}`
19+ ( item ) => item . original . $value === `{${ path } .value}` ,
2020 ) . map ( ( alias ) => `{${ alias . path . join ( '.' ) } }` ) ;
2121} ;
2222
@@ -52,13 +52,9 @@ export default class Index extends Component {
5252 const filteredTokens = this . groupedTokens [ category ] . filter (
5353 ( t ) =>
5454 t . name . indexOf ( this . searchQuery ) !== - 1 ||
55- < << << << HEAD
5655 // note: we prefix `value` with `$` because we're using the DTCG format
5756 // we also convert it to string, because in some cases it's a number
58- String ( t . $value ) . indexOf ( this . searchQuery ) !== - 1
59- === = ===
60- t . value . indexOf ( this . searchQuery ) !== - 1 ,
61- > >>> >>> e233399e2 ( replace instances of with )
57+ String ( t . $value ) . indexOf ( this . searchQuery ) !== - 1 ,
6258 ) ;
6359
6460 if ( filteredTokens . length > 0 ) {
You can’t perform that action at this time.
0 commit comments