Skip to content

Commit 3fb1fbc

Browse files
authored
fix(material/toolbar): inherit toolbar color in flat buttons (#26089)
Fixes that MDC-based buttons placed inside a toolbar weren't inheriting its text color like the non-MDC buttons. Fixes #26063.
1 parent 547357a commit 3fb1fbc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/dev-app/dev-app/dev-app-layout.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,4 @@ body {
7373
.demo-config-buttons {
7474
display: flex;
7575
align-items: center;
76-
77-
.mat-mdc-button-base {
78-
--mdc-text-button-label-text-color: inherit;
79-
}
8076
}

src/material/toolbar/toolbar.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ $height-mobile-portrait: 56px !default;
1010
@include cdk.high-contrast(active, off) {
1111
outline: solid 1px;
1212
}
13+
14+
.mat-mdc-button-base {
15+
--mdc-text-button-label-text-color: inherit;
16+
--mdc-outlined-button-label-text-color: inherit;
17+
}
1318
}
1419

1520
.mat-toolbar-row, .mat-toolbar-single-row {

0 commit comments

Comments
 (0)