Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 5b1348c

Browse files
shadow-lightwilliamernest
authored andcommitted
fix(theme): Make $mdc-theme-on-error dark if $mdc-theme-error is light (#3678)
1 parent ccbd6d6 commit 5b1348c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mdc-theme/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $mdc-theme-surface: #fff !default;
4242
$mdc-theme-on-surface: if(mdc-theme-contrast-tone($mdc-theme-surface) == "dark", #000, #fff) !default;
4343

4444
$mdc-theme-error: #b00020 !default;
45-
$mdc-theme-on-error: #fff !default;
45+
$mdc-theme-on-error: if(mdc-theme-contrast-tone($mdc-theme-error) == "dark", #000, #fff) !default;
4646

4747
//
4848
// Text colors according to light vs dark and text type.

0 commit comments

Comments
 (0)