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

Commit e164a24

Browse files
fix(radio): Update colors to latest guidance (#2623)
1 parent a694a34 commit e164a24

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/mdc-radio/_variables.scss

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

17+
@import "@material/theme/variables";
18+
1719
$mdc-radio-touch-area: 40px;
1820
$mdc-radio-ui-size: 20px;
1921
$mdc-radio-ui-pct: percentage($mdc-radio-ui-size / $mdc-radio-touch-area);
2022
$mdc-radio-transition-duration: 120ms;
2123
$mdc-radio-ripple-opacity: .14;
2224
$mdc-radio-baseline-theme-color: secondary;
25+
$mdc-radio-unchecked-color: rgba(mdc-theme-prop-value(on-surface), .54);
26+
$mdc-radio-circle-color: rgba(mdc-theme-prop-value(on-surface), .26);

packages/mdc-radio/mdc-radio.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// postcss-bem-linter: define radio
2525
.mdc-radio {
26-
@include mdc-radio-unchecked-stroke-color(text-secondary-on-background);
26+
@include mdc-radio-unchecked-stroke-color($mdc-radio-unchecked-color);
2727
@include mdc-radio-checked-stroke-color($mdc-radio-baseline-theme-color);
2828
@include mdc-radio-ink-color($mdc-radio-baseline-theme-color);
2929
@include mdc-radio-focus-indicator-color($mdc-radio-baseline-theme-color);
@@ -149,11 +149,11 @@
149149
cursor: default;
150150

151151
.mdc-radio__outer-circle {
152-
border-color: rgba(black, .26);
152+
border-color: $mdc-radio-circle-color;
153153
}
154154

155155
.mdc-radio__inner-circle {
156-
background-color: rgba(black, .26);
156+
background-color: $mdc-radio-circle-color;
157157
}
158158
}
159159
}

0 commit comments

Comments
 (0)