|
36 | 36 | /// @param {Color} $item-focused-text-color [null] - The focused text color for button group items. Auto-derived from item-focused-background. |
37 | 37 | /// @param {Color} $item-focused-background [null] - The focused background color for button group items. Auto-derived from item-hover-background. |
38 | 38 | /// @param {Color} $item-focused-border-color [null] - The focused border color for an item from the button group. Auto-derived from item-border-color. |
| 39 | +/// @param {Color} $item-focused-hover-text-color [null] - The focused & hover text color for button group items. Auto-derived from item-focused-text-color. |
| 40 | +/// @param {Color} $item-focused-hover-border-color [null] - The focused & hover border color for an item from the button group. Auto-derived from item-focused-border-color. |
39 | 41 | /// @param {Color} $item-focused-hover-background [null] - The focused & hover background color for button group items. Auto-derived from item-focused-background. |
| 42 | +/// @param {Color} $item-active-background [null] - The active background color for button group items. Auto-derived from item-hover-background. |
| 43 | +/// @param {Color} $item-active-border-color [null] - The active border color for button group items. Auto-derived from item-hover-border-color. |
40 | 44 | /// @param {Color} $idle-shadow-color [null] - The outline color of focused button group items. Auto-derived from item-background or selected-shadow-color. |
41 | 45 | /// @param {Color} $selected-shadow-color [null] - The outline color of focused/selected button group items. Auto-derived from idle-shadow-color. |
42 | 46 | /// |
|
55 | 59 | /// @param {Color} $item-selected-hover-border-color [null] - The border color for a selected item in hover state in the button group. Auto-derived from item-border-color. |
56 | 60 | /// @param {Color} $item-selected-focus-background [null] - The background color for a selected item in focused state in the button group. Auto-derived from item-selected-background. |
57 | 61 | /// @param {Color} $item-selected-focus-hover-background [null] - The background color for a selected item in focused & hover state in the button group. Auto-derived from item-selected-hover-background. |
| 62 | +/// @param {Color} $item-selected-active-background [null] - The active background color for a selected item in the button group. Auto-derived from item-selected-hover-background. |
| 63 | +/// @param {Color} $item-selected-active-border-color [null] - The active border color for a selected item in the button group. Auto-derived from item-selected-hover-border-color. |
58 | 64 | /// |
59 | 65 | /// @param {Color} $disabled-selected-text-color [null] - The disabled text color for a selected item in the button group. Auto-derived from disabled-text-color. |
60 | 66 | /// @param {Color} $disabled-selected-icon-color [null] - The disabled icon color for a selected item in the button group. Auto-derived from disabled-selected-text-color. |
|
89 | 95 |
|
90 | 96 | $item-focused-text-color: null, |
91 | 97 | $item-focused-border-color: null, |
| 98 | + $item-focused-hover-text-color: null, |
| 99 | + $item-focused-hover-border-color: null, |
92 | 100 | $item-focused-background: null, |
93 | 101 | $item-focused-hover-background: null, |
| 102 | + $item-active-background: null, |
| 103 | + $item-active-border-color: null, |
94 | 104 | $idle-shadow-color: null, |
95 | 105 | $selected-shadow-color: null, |
96 | 106 | $border-radius: null, |
|
110 | 120 | $item-selected-hover-border-color: null, |
111 | 121 | $item-selected-focus-background: null, |
112 | 122 | $item-selected-focus-hover-background: null, |
| 123 | + $item-selected-active-background: null, |
| 124 | + $item-selected-active-border-color: null, |
113 | 125 |
|
114 | 126 | $disabled-selected-text-color: null, |
115 | 127 | $disabled-selected-icon-color: $disabled-selected-text-color, |
|
161 | 173 | $item-selected-focus-hover-background: var(--item-selected-hover-background); |
162 | 174 | } |
163 | 175 |
|
| 176 | + @if not($item-selected-active-background) and $item-selected-hover-background { |
| 177 | + $item-selected-active-background: dynamic-shade(var(--item-selected-hover-background)); |
| 178 | + } |
| 179 | + |
164 | 180 | @if not($item-focused-background) and $item-background { |
165 | 181 | $item-focused-background: var(--item-hover-background); |
166 | 182 | } |
|
169 | 185 | $item-focused-hover-background: dynamic-shade(var(--item-focused-background)); |
170 | 186 | } |
171 | 187 |
|
| 188 | + @if not($item-active-background) and $item-hover-background { |
| 189 | + $item-active-background: dynamic-shade(var(--item-hover-background)); |
| 190 | + } |
| 191 | + |
| 192 | + @if not($item-active-border-color) and $item-hover-border-color { |
| 193 | + $item-active-border-color: var(--item-hover-border-color); |
| 194 | + } |
| 195 | + |
| 196 | + @if not($item-selected-active-border-color) and $item-selected-hover-border-color { |
| 197 | + $item-selected-active-border-color: var(--item-selected-hover-border-color); |
| 198 | + } |
| 199 | + |
172 | 200 | @if not($disabled-background-color) and $item-background { |
173 | 201 | $disabled-background-color: var(--item-background); |
174 | 202 | } |
|
190 | 218 | $item-focused-border-color: var(--item-border-color); |
191 | 219 | } |
192 | 220 |
|
| 221 | + @if not($item-focused-hover-border-color) and $item-focused-border-color { |
| 222 | + $item-focused-hover-border-color: var(--item-focused-border-color); |
| 223 | + } |
| 224 | + |
193 | 225 | @if not($item-selected-border-color) and $item-border-color { |
194 | 226 | $item-selected-border-color: var(--item-border-color); |
195 | 227 | } |
|
227 | 259 | $item-focused-text-color: adaptive-contrast(var(--item-focused-background)); |
228 | 260 | } |
229 | 261 |
|
| 262 | + @if not($item-focused-hover-text-color) and $item-focused-text-color { |
| 263 | + $item-focused-hover-text-color: var(--item-focused-text-color); |
| 264 | + } |
| 265 | + |
230 | 266 | @if not($item-selected-text-color) and $item-selected-background { |
231 | 267 | $item-selected-text-color: adaptive-contrast(var(--item-selected-background)); |
232 | 268 | } |
|
285 | 321 | item-background: $item-background, |
286 | 322 | item-border-color: $item-border-color, |
287 | 323 | item-focused-text-color: $item-focused-text-color, |
| 324 | + item-focused-hover-text-color: $item-focused-hover-text-color, |
288 | 325 | item-focused-background: $item-focused-background, |
289 | 326 | item-focused-border-color: $item-focused-border-color, |
| 327 | + item-focused-hover-border-color: $item-focused-hover-border-color, |
290 | 328 | item-focused-hover-background: $item-focused-hover-background, |
| 329 | + item-active-background: $item-active-background, |
| 330 | + item-active-border-color: $item-active-border-color, |
291 | 331 | border-radius: $border-radius, |
292 | 332 | item-hover-text-color: $item-hover-text-color, |
293 | 333 | item-hover-icon-color: $item-hover-icon-color, |
|
306 | 346 | item-selected-hover-border-color: $item-selected-hover-border-color, |
307 | 347 | item-selected-focus-background: $item-selected-focus-background, |
308 | 348 | item-selected-focus-hover-background: $item-selected-focus-hover-background, |
| 349 | + item-selected-active-background: $item-selected-active-background, |
| 350 | + item-selected-active-border-color: $item-selected-active-border-color, |
309 | 351 | disabled-selected-text-color: $disabled-selected-text-color, |
310 | 352 | disabled-selected-icon-color: $disabled-selected-icon-color, |
311 | 353 | disabled-selected-background: $disabled-selected-background, |
|
0 commit comments