mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(tabs): incorrect ripple color for tabs with background (#8123)
* Tabs with a background color need to set the ripple colors to be the contrast color. Otherwise the ripples might be too dark/or light, depending on the color palette that is being used.
This commit is contained in:
committed by
Andrew Seguin
parent
75bccde374
commit
02d3eb6c30
@@ -111,6 +111,12 @@
|
||||
.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron {
|
||||
border-color: mat-color($background-color, default-contrast, 0.4);
|
||||
}
|
||||
|
||||
// Set ripples color to be the contrast color of the new background. Otherwise the ripple
|
||||
// color will be based on the app background color.
|
||||
.mat-ripple-element {
|
||||
background-color: mat-color($background-color, default-contrast, 0.12);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin mat-tabs-typography($config) {
|
||||
|
||||
Reference in New Issue
Block a user