|
20 | 20 | /// @param {Color} $item-hover-color [null] - The text color used for the tabs on hover. |
21 | 21 | /// @param {Color} $item-icon-color [null] - The color used for the tab icon. |
22 | 22 | /// @param {Color} $item-active-icon-color [null] - The color used for the active tab icon. |
| 23 | +/// @param {Color} $item-active-hover-icon-color [null] - The color used for the active tab icon on hover and focus. |
23 | 24 | /// @param {Color} $item-hover-icon-color [null] - The color used for the tab icon on hover. |
24 | 25 | /// @param {Color} $item-disabled-icon-color [null] - The color used for the disabled tab icon. |
25 | 26 | /// @param {Color} $item-active-color [null] - The color used for the active tabs text. |
26 | | -/// @param {Color} $item-active-background [null] - The color used for the active/focused tab background. |
| 27 | +/// @param {Color} $item-active-hover-color [null] - The color used for the active tabs text on hover and focus. |
| 28 | +/// @param {Color} $item-active-background [null] - The color used for the active tab background. |
| 29 | +/// @param {Color} $item-active-hover-background [null] - The color used for the active tab background on hover and focus. |
27 | 30 | /// @param {Color} $item-disabled-color [null] - The color used for the disabled tabs text. |
28 | 31 | /// @param {Color} $indicator-color [null] - The color used for the active tab indicator. |
29 | 32 | /// @param {Color} $button-color [null] - The color used for the button icon/text color. |
|
51 | 54 | $item-hover-color: null, |
52 | 55 | $item-icon-color: null, |
53 | 56 | $item-active-icon-color: null, |
| 57 | + $item-active-hover-icon-color: null, |
54 | 58 | $item-hover-icon-color: null, |
55 | 59 | $item-disabled-icon-color: null, |
56 | 60 | $item-active-color: null, |
| 61 | + $item-active-hover-color: null, |
57 | 62 | $item-active-background: null, |
| 63 | + $item-active-hover-background: null, |
58 | 64 | $item-disabled-color: null, |
59 | 65 | $indicator-color: null, |
60 | 66 | $button-color: null, |
|
82 | 88 | $variant: map.get($theme, '_meta', 'theme'); |
83 | 89 |
|
84 | 90 | @if not($item-active-background) and $item-background { |
85 | | - $item-active-background: dynamic-shade(var(--item-background)); |
| 91 | + $item-active-background: var(--item-background); |
| 92 | + } |
| 93 | + |
| 94 | + @if not($item-active-hover-background) and $item-active-background { |
| 95 | + $item-active-hover-background: dynamic-shade(var(--item-active-background)); |
86 | 96 | } |
87 | 97 |
|
88 | 98 | @if not($item-background) { |
|
103 | 113 | } |
104 | 114 | } |
105 | 115 |
|
| 116 | + @if not($item-active-icon-color) and $item-active-color { |
| 117 | + $item-active-icon-color: var(--item-active-color); |
| 118 | + } |
| 119 | + |
| 120 | + @if not($item-active-color) and $item-active-icon-color { |
| 121 | + $item-active-color: var(--item-active-icon-color); |
| 122 | + } |
| 123 | + |
| 124 | + @if not($item-active-hover-color) and $item-active-color { |
| 125 | + $item-active-hover-color: var(--item-active-color); |
| 126 | + } |
| 127 | + |
| 128 | + @if not($item-active-hover-icon-color) and $item-active-icon-color { |
| 129 | + $item-active-hover-icon-color: var(--item-active-icon-color); |
| 130 | + } |
| 131 | + |
106 | 132 | @if not($item-active-background) { |
107 | | - @if $variant != 'bootstrap' { |
| 133 | + @if $variant != 'bootstrap' and $variant != 'material' { |
108 | 134 | @if not($item-active-icon-color) and $item-icon-color { |
109 | 135 | $item-active-icon-color: var(--item-icon-color); |
110 | 136 | } |
|
114 | 140 | } |
115 | 141 | } |
116 | 142 | } @else { |
117 | | - @if not($item-active-icon-color) and $item-active-color { |
118 | | - $item-active-icon-color: var(--item-active-color); |
119 | | - } |
120 | | - |
121 | | - @if not($item-active-color) and $item-active-icon-color { |
122 | | - $item-active-color: var(--item-active-icon-color); |
123 | | - } |
124 | | - |
125 | 143 | @if not($item-active-icon-color) and $item-active-background { |
126 | 144 | $item-active-icon-color: adaptive-contrast(var(--item-active-background)); |
127 | 145 | } |
128 | 146 |
|
129 | 147 | @if not($item-active-color) and $item-active-background { |
130 | 148 | $item-active-color: adaptive-contrast(var(--item-active-background)); |
131 | 149 | } |
| 150 | + |
| 151 | + @if not($item-active-hover-icon-color) and $item-active-hover-background { |
| 152 | + $item-active-hover-icon-color: adaptive-contrast(var(--item-active-hover-background)); |
| 153 | + } |
| 154 | + |
| 155 | + @if not($item-active-hover-color) and $item-active-hover-background { |
| 156 | + $item-active-hover-color: adaptive-contrast(var(--item-active-hover-background)); |
| 157 | + } |
132 | 158 | } |
133 | 159 |
|
134 | 160 | @if not($item-hover-background) { |
|
162 | 188 | $border-color--hover: var(--border-color); |
163 | 189 | } |
164 | 190 | } @else { |
165 | | - @if not($item-background) { |
166 | | - @if not($indicator-color) and $item-text-color { |
167 | | - $indicator-color: var(--item-text-color); |
168 | | - } |
169 | | - |
170 | | - @if not($indicator-color) and $item-icon-color { |
171 | | - $indicator-color: var(--item-icon-color); |
| 191 | + @if not($item-active-background) { |
| 192 | + @if not($indicator-color) and $item-active-color { |
| 193 | + $indicator-color: var(--item-active-color); |
172 | 194 | } |
173 | 195 | } @else { |
174 | 196 | @if not($indicator-color) and $item-active-color { |
175 | 197 | $indicator-color: var(--item-active-color); |
176 | 198 | } |
177 | 199 |
|
178 | 200 | @if not($indicator-color) { |
179 | | - $indicator-color: adaptive-contrast(var(--item-background)); |
| 201 | + $indicator-color: adaptive-contrast(var(--item-active-background)); |
180 | 202 | } |
181 | 203 | } |
182 | 204 | } |
|
249 | 271 | item-hover-background: $item-hover-background, |
250 | 272 | item-icon-color: $item-icon-color, |
251 | 273 | item-active-icon-color: $item-active-icon-color, |
| 274 | + item-active-hover-icon-color: $item-active-hover-icon-color, |
252 | 275 | item-hover-icon-color: $item-hover-icon-color, |
253 | 276 | item-disabled-icon-color: $item-disabled-icon-color, |
254 | 277 | item-active-color: $item-active-color, |
| 278 | + item-active-hover-color: $item-active-hover-color, |
255 | 279 | item-active-background: $item-active-background, |
| 280 | + item-active-hover-background: $item-active-hover-background, |
256 | 281 | item-disabled-color: $item-disabled-color, |
257 | 282 | indicator-color: $indicator-color, |
258 | 283 | button-color: $button-color, |
|
0 commit comments