File tree Expand file tree Collapse file tree 4 files changed +18
-12
lines changed
material-experimental/mdc-tabs Expand file tree Collapse file tree 4 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,11 @@ $mat-tab-animation-duration: 500ms !default;
129
129
.mat-mdc-tab-header-pagination-disabled {
130
130
box-shadow : none ;
131
131
cursor : default ;
132
- opacity : 0.4 ;
133
132
pointer-events : none ;
133
+
134
+ .mat-mdc-tab-header-pagination-chevron {
135
+ opacity : 0.4 ;
136
+ }
134
137
}
135
138
136
139
.mat-mdc-tab-list {
Original file line number Diff line number Diff line change 77
77
@include mdc-theme .prop (color , $foreground-color );
78
78
}
79
79
80
+ .mdc-tab-indicator__content--underline ,
81
+ .mat-mdc-tab-header-pagination-chevron ,
82
+ .mat-mdc-focus-indicator ::before {
83
+ @include mdc-theme .prop (border-color , $foreground-color );
84
+ }
85
+ }
86
+
87
+ > .mat-mdc-tab-header , > .mat-mdc-tab-link-container , > .mat-mdc-tab-header-pagination {
80
88
.mat-ripple-element , .mdc-tab__ripple ::before {
81
89
@include mdc-theme .prop (background-color , $foreground-color );
82
90
}
83
91
84
- .mdc-tab-indicator__content--underline , .mat-mdc-tab-header-pagination-chevron ,
85
- .mat-mdc-focus-indicator ::before ,
86
- .mat-mdc-focus-indicator ::before {
92
+ .mat-mdc-tab-header-pagination-chevron {
87
93
@include mdc-theme .prop (border-color , $foreground-color );
88
94
}
89
95
}
Original file line number Diff line number Diff line change 9
9
@include tabs-common .paginated-tab-header-container ;
10
10
}
11
11
12
- .mat-mdc-tab-header-pagination-disabled {
13
- box-shadow : none ;
14
- cursor : default ;
15
- opacity : 0.4 ;
16
- }
17
-
18
12
.mat-mdc-tab-labels {
19
13
@include tabs-common .paginated-tab-header-item-wrapper (' .mat-mdc-tab-header' );
20
14
}
Original file line number Diff line number Diff line change 117
117
}
118
118
119
119
// Set pagination chevrons to contrast background
120
+ > .mat-tab-header .mat-tab-header-pagination-chevron ,
120
121
> .mat-tab-header-pagination .mat-tab-header-pagination-chevron ,
121
- > .mat-tab-links .mat-focus-indicator ::before ,
122
+ > .mat-tab-link-container .mat-focus-indicator ::before ,
122
123
> .mat-tab-header .mat-focus-indicator ::before {
123
124
border-color : theming .get-color-from-palette ($background-color , default-contrast );
124
125
}
125
126
127
+ > .mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron ,
126
128
> .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron {
127
129
border-color : theming .get-color-from-palette ($background-color , default-contrast , 0.4 );
128
130
}
129
131
130
132
// Set ripples color to be the contrast color of the new background. Otherwise the ripple
131
133
// color will be based on the app background color.
132
134
> .mat-tab-header .mat-ripple-element ,
133
- > .mat-tab-link-container .mat-ripple-element {
135
+ > .mat-tab-link-container .mat-ripple-element ,
136
+ > .mat-tab-header-pagination .mat-ripple-element {
134
137
background-color : theming .get-color-from-palette ($background-color , default-contrast , 0.12 );
135
138
}
136
139
}
You can’t perform that action at this time.
0 commit comments