Skip to content

Commit

Permalink
fix: supported tokens were not being verified
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 546133559
  • Loading branch information
AndrewJakubowicz authored and copybara-github committed Jul 7, 2023
1 parent 8fee0a7 commit 2922914
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tokens/_md-comp-list-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,14 @@ $supported-tokens: (
'list-item-leading-avatar-label-type',
'list-item-leading-avatar-shape',
'list-item-leading-avatar-size',
'list-item-leading-element-leading-space',
'list-item-leading-icon-color',
'list-item-leading-icon-size',
'list-item-leading-image-height',
'list-item-leading-image-shape',
'list-item-leading-image-width',
'list-item-leading-space',
'list-item-leading-video-leading-space',
'list-item-leading-video-shape',
'list-item-leading-video-width',
'list-item-one-line-container-height',
Expand All @@ -60,8 +63,10 @@ $supported-tokens: (
'list-item-supporting-text-color',
'list-item-supporting-text-type',
'list-item-three-line-container-height',
'list-item-trailing-element-headline-trailing-element-space',
'list-item-trailing-icon-color',
'list-item-trailing-icon-size',
'list-item-trailing-space',
'list-item-trailing-supporting-text-color',
'list-item-trailing-supporting-text-line-height',
'list-item-trailing-supporting-text-type',
Expand Down
1 change: 1 addition & 0 deletions tokens/_md-comp-menu-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

$supported-tokens: (
// go/keep-sorted start
'list-item-container-color',
'list-item-selected-container-color',
// go/keep-sorted end
);
Expand Down
2 changes: 1 addition & 1 deletion tokens/_values.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
}

@each $token in map.keys($values) {
@if list.index($supported-tokens, $token) == 0 {
@if list.index($supported-tokens, $token) == null {
@error 'values.validate($supported-tokens)) is missing the \'#{$token}\' token. Does it need adding to $unsupported-tokens?';
}
}
Expand Down

0 comments on commit 2922914

Please sign in to comment.