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

Commit 68f4ad0

Browse files
fix(checkbox): Update to match new colors (#2622)
1 parent e164a24 commit 68f4ad0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/mdc-checkbox/_variables.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
// limitations under the License.
1515
//
1616

17-
$mdc-checkbox-mark-color: white !default;
18-
$mdc-checkbox-border-color: rgba(black, .54) !default;
19-
$mdc-checkbox-disabled-color: rgba(black, .26) !default;
20-
$mdc-checkbox-baseline-theme-color: secondary !default;
17+
@import "@material/theme/variables";
18+
19+
$mdc-checkbox-mark-color: mdc-theme-prop-value(on-primary);
20+
$mdc-checkbox-border-color: rgba(mdc-theme-prop-value(on-surface), .54);
21+
$mdc-checkbox-disabled-color: rgba(mdc-theme-prop-value(on-surface), .26);
22+
$mdc-checkbox-baseline-theme-color: secondary;
2123

2224
$mdc-checkbox-touch-area: 40px;
2325
$mdc-checkbox-size: 18px;

packages/mdc-checkbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"@material/animation": "^0.34.0",
1818
"@material/base": "^0.34.0",
1919
"@material/ripple": "^0.34.1",
20-
"@material/selection-control": "^0.34.1",
2120
"@material/rtl": "^0.34.0",
21+
"@material/selection-control": "^0.34.1",
2222
"@material/theme": "^0.34.0"
2323
}
2424
}

0 commit comments

Comments
 (0)