|
62 | 62 | }
|
63 | 63 |
|
64 | 64 | @mixin _background($background-color, $foreground-color) {
|
65 |
| - // Note that these selectors target direct descendants so |
66 |
| - // that the styles don't apply to any nested tab groups. |
67 |
| - |
68 |
| - > .mat-mdc-tab-header, > .mat-mdc-tab-link-container, > .mat-mdc-tab-header-pagination { |
69 |
| - // Set background color for the tab group |
70 |
| - @include mdc-theme.prop(background-color, $background-color); |
71 |
| - } |
72 |
| - |
73 |
| - > .mat-mdc-tab-header, > .mat-mdc-tab-link-container { |
74 |
| - // Set labels to contrast against background |
75 |
| - .mat-mdc-tab .mdc-tab__text-label, .mat-mdc-tab-link .mdc-tab__text-label { |
76 |
| - @include mdc-theme.prop(color, $foreground-color); |
77 |
| - } |
78 |
| - |
79 |
| - .mdc-tab-indicator__content--underline, |
80 |
| - .mat-mdc-tab-header-pagination-chevron, |
81 |
| - .mat-mdc-focus-indicator::before { |
82 |
| - @include mdc-theme.prop(border-color, $foreground-color); |
83 |
| - } |
84 |
| - } |
85 |
| - |
86 |
| - > .mat-mdc-tab-header, > .mat-mdc-tab-link-container, > .mat-mdc-tab-header-pagination { |
87 |
| - .mat-ripple-element, .mdc-tab__ripple::before { |
88 |
| - @include mdc-theme.prop(background-color, $foreground-color); |
89 |
| - } |
90 |
| - |
91 |
| - .mat-mdc-tab-header-pagination-chevron { |
92 |
| - @include mdc-theme.prop(border-color, $foreground-color); |
93 |
| - } |
94 |
| - } |
| 65 | + $background-value: mdc-theme-color.prop-value($background-color); |
| 66 | + $foreground-value: mdc-theme-color.prop-value($foreground-color); |
| 67 | + --mat-mdc-tab-header-with-background-background-color: #{$background-value}; |
| 68 | + --mat-mdc-tab-header-with-background-foreground-color: #{$foreground-value}; |
95 | 69 | }
|
96 | 70 |
|
97 | 71 | @mixin _palette-styles($color) {
|
|
0 commit comments