Skip to content

Commit

Permalink
fix(button): theme mixin not validating
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 535046546
  • Loading branch information
asyncLiz authored and copybara-github committed May 25, 2023
1 parent a6c988b commit c566a64
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion button/lib/_elevated-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
);

@each $token, $value in $tokens {
@if list.index($supported-tokens, $token) {
@if list.index($supported-tokens, $token) == null {
@error 'Token `#{$token}` is not a supported token.';
}

Expand Down
2 changes: 1 addition & 1 deletion button/lib/_filled-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
);

@each $token, $value in $tokens {
@if list.index($supported-tokens, $token) {
@if list.index($supported-tokens, $token) == null {
@error 'Token `#{$token}` is not a supported token.';
}

Expand Down
2 changes: 1 addition & 1 deletion button/lib/_outlined-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
);

@each $token, $value in $tokens {
@if list.index($supported-tokens, $token) {
@if list.index($supported-tokens, $token) == null {
@error 'Token `#{$token}` is not a supported token.';
}

Expand Down
2 changes: 1 addition & 1 deletion button/lib/_text-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
);

@each $token, $value in $tokens {
@if list.index($supported-tokens, $token) {
@if list.index($supported-tokens, $token) == null {
@error 'Token `#{$token}` is not a supported token.';
}

Expand Down
2 changes: 1 addition & 1 deletion button/lib/_tonal-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
);

@each $token, $value in $tokens {
@if list.index($supported-tokens, $token) {
@if list.index($supported-tokens, $token) == null {
@error 'Token `#{$token}` is not a supported token.';
}

Expand Down

0 comments on commit c566a64

Please sign in to comment.