File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
src/material-experimental/mdc-tabs Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 62
62
@include mdc-theme-prop (color , $foreground-color );
63
63
}
64
64
65
- .mat-ripple-element , .mat- mdc-tab ::before {
65
+ .mat-ripple-element , .mdc-tab__ripple ::before {
66
66
@include mdc-theme-prop (background-color , $foreground-color );
67
67
}
68
68
76
76
@include mdc-tab-indicator-underline-color ($color , $query : $mat-theme-styles-query );
77
77
@include mdc-tab-indicator-icon-color ($color , $query : $mat-theme-styles-query );
78
78
79
- .mat-mdc-tab ::before ,
80
- .mat-mdc-tab-link ::before ,
79
+ .mdc-tab__ripple ::before ,
81
80
.mat-mdc-tab .mat-ripple-element ,
82
81
.mat-mdc-tab-header-pagination .mat-ripple-element ,
83
82
.mat-mdc-tab-link .mat-ripple-element {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ $mat-tab-animation-duration: 500ms !default;
24
24
25
25
// Used to render out the background tint when hovered/focused. Usually this is done by
26
26
// MDC's ripple styles, however we're using our own ripples due to size concerns.
27
- & ::before {
27
+ .mdc-tab__ripple ::before {
28
28
content : ' ' ;
29
29
display : block ;
30
30
position : absolute ;
@@ -37,13 +37,13 @@ $mat-tab-animation-duration: 500ms !default;
37
37
}
38
38
39
39
// We need to handle the hover and focus indication ourselves, because we don't use MDC's ripple.
40
- & :hover ::before {
40
+ & :hover .mdc-tab__ripple ::before {
41
41
opacity : map-get ($mdc-ripple-dark-ink-opacities , hover );
42
42
}
43
43
44
44
& .cdk-program-focused ,
45
45
& .cdk-keyboard-focused {
46
- & ::before {
46
+ .mdc-tab__ripple ::before {
47
47
opacity : map-get ($mdc-ripple-dark-ink-opacities , focus );
48
48
}
49
49
}
Original file line number Diff line number Diff line change 21
21
[class.mdc-tab--active] ="selectedIndex == i "
22
22
[disabled] ="tab.disabled "
23
23
(click) ="_handleClick(tab, tabHeader, i) ">
24
+ < span class ="mdc-tab__ripple "> </ span >
24
25
25
26
<!-- Needs to be a separate element, because we can't put
26
27
`overflow: hidden` on tab due to the ink bar. -->
Original file line number Diff line number Diff line change
1
+ < span class ="mdc-tab__ripple "> </ span >
2
+
1
3
< div
2
4
class ="mat-mdc-tab-ripple "
3
5
mat-ripple
9
11
< ng-content > </ ng-content >
10
12
</ span >
11
13
</ span >
14
+
You can’t perform that action at this time.
0 commit comments