Skip to content

Commit c02c43a

Browse files
committed
fix(material-experimental/mdc-button): align outline color with spec (#24249)
The spec has a grey outline for outlined buttons, but we currently set it to the theme color. (cherry picked from commit f0f9cbe)
1 parent a634505 commit c02c43a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/material-experimental/mdc-button/_button-theme.scss

+6-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
@mixin _outlined-button-variant($color) {
3535
@include mdc-button-outlined-theme.theme((
3636
label-text-color: $color,
37-
outline-color: $color,
3837
));
3938
}
4039

@@ -140,6 +139,10 @@
140139
}
141140

142141
.mat-mdc-outlined-button {
142+
@include mdc-button-outlined-theme.theme((
143+
outline-color: rgba(mdc-theme-color.prop-value(on-surface), 0.12)
144+
));
145+
143146
&.mat-unthemed {
144147
@include _outlined-button-variant($on-surface);
145148
}
@@ -161,9 +164,9 @@
161164
// We need to pass both the disabled and enabled values, because the enabled
162165
// ones apply to anchors while the disabled ones are for buttons.
163166
label-text-color: $disabled-ink-color,
164-
outline-color: $disabled-ink-color,
165167
disabled-label-text-color: $disabled-ink-color,
166-
disabled-outline-color: $disabled-ink-color,
168+
outline-color: rgba($on-surface, 0.12),
169+
disabled-outline-color: rgba($on-surface, 0.12),
167170
));
168171
}
169172
}

0 commit comments

Comments
 (0)