|
39 | 39 | /// @param {Color} $focus-visible-border-color [null] - The focus-visible border color of the button. |
40 | 40 | /// @param {Color} $active-border-color [null] - The active border color of the button. |
41 | 41 | /// @param {Color} $shadow-color [null] - The shadow color of the button. |
42 | | -/// @param {Color} $resting-shadow [null] - The shadow of the button in its idle state. |
43 | | -/// @param {Color} $hover-shadow [null] - The shadow of the button in its hover state. |
44 | | -/// @param {Color} $focus-shadow [null] - The shadow of the button in its focus state. |
45 | | -/// @param {Color} $active-shadow [null] - The shadow of the button in its focus state. |
46 | 42 | /// @param {Color} $disabled-background [null] - The disabled background color of the button. |
47 | 43 | /// @param {Color} $disabled-foreground [null] - The disabled text color of the button. |
48 | 44 | /// @param {Color} $disabled-icon-color [null] - The disabled icon color of the button. |
|
89 | 85 |
|
90 | 86 | $shadow-color: null, |
91 | 87 |
|
92 | | - $resting-shadow: null, |
93 | | - $hover-shadow: null, |
94 | | - $focus-shadow: null, |
95 | | - $active-shadow: null, |
96 | | -
|
97 | 88 | $disabled-background: null, |
98 | 89 | $disabled-foreground: null, |
99 | 90 | $disabled-icon-color: $disabled-foreground, |
|
283 | 274 | } |
284 | 275 | } |
285 | 276 |
|
286 | | - @if not($resting-shadow) { |
287 | | - $resting-elevation: map.get($button-schema, 'resting-elevation'); |
288 | | - $resting-shadow: elevation($resting-elevation); |
289 | | - } |
290 | | - |
291 | | - @if not($hover-shadow) { |
292 | | - $hover-elevation: map.get($button-schema, 'hover-elevation'); |
293 | | - $hover-shadow: elevation($hover-elevation); |
294 | | - } |
295 | | - |
296 | | - @if not($focus-shadow) { |
297 | | - $focus-elevation: map.get($button-schema, 'focus-elevation'); |
298 | | - $focus-shadow: elevation($focus-elevation); |
299 | | - } |
300 | | - |
301 | | - @if not($active-shadow) { |
302 | | - $active-elevation: map.get($button-schema, 'active-elevation'); |
303 | | - $active-shadow: elevation($active-elevation); |
304 | | - } |
305 | | - |
306 | 277 | @return extend( |
307 | 278 | $theme, |
308 | 279 | ( |
|
329 | 300 | focus-visible-border-color: $focus-visible-border-color, |
330 | 301 | active-border-color: $active-border-color, |
331 | 302 | shadow-color: $shadow-color, |
332 | | - resting-elevation: $resting-shadow, |
333 | | - hover-elevation: $hover-shadow, |
334 | | - focus-elevation: $focus-shadow, |
335 | | - active-elevation: $active-shadow, |
336 | 303 | disabled-background: $disabled-background, |
337 | 304 | disabled-foreground: $disabled-foreground, |
338 | 305 | disabled-icon-color: $disabled-icon-color, |
|
0 commit comments