Skip to content

Commit 3f2b674

Browse files
committed
fix(material/datepicker): increse specificity of period button styles (#33970)
Increases the specificity for the period button styles so that they're guaranteed to apply over the Material button. Fixes #33968. (cherry picked from commit d1a4c23)
1 parent 14d9311 commit 3f2b674

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/material/datepicker/calendar.scss‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ $fallbacks: m3-datepicker.get-tokens();
4646
flex: 1 1 auto;
4747
}
4848

49-
.mat-calendar-period-button {
49+
// Note: this needs extra specificity in order to override the base styles from the Material button.
50+
button.mat-calendar-period-button {
5051
min-width: 0;
5152
margin: 0 8px;
5253

0 commit comments

Comments
 (0)