@@ -48,6 +48,8 @@ $_shadow-map: (
4848/// Represents the configurable values of the elevation theme.
4949///
5050$_theme-values : (
51+ disabled-shadow : null,
52+ disabled-overlay-opacity : null,
5153 focus-shadow : null,
5254 focus-overlay-opacity : null,
5355 hover-shadow : null,
@@ -90,6 +92,7 @@ $_theme-values: (
9092 @include _box-shadow (
9193 (
9294 default : map .get ($theme , shadow ),
95+ disabled : map .get ($theme , disabled-shadow ),
9396 focus: map .get ($theme , focus-shadow ),
9497 hover: map .get ($theme , hover-shadow ),
9598 pressed: map .get ($theme , pressed-shadow ),
@@ -100,6 +103,7 @@ $_theme-values: (
100103 @include elevation-overlay-theme .theme-styles (
101104 (
102105 overlay- opacity: map .get ($theme , overlay-opacity ),
106+ disabled- overlay- opacity: map .get ($theme , disabled-overlay-opacity ),
103107 focus- overlay- opacity: map .get ($theme , focus-overlay-opacity ),
104108 hover- overlay- opacity: map .get ($theme , hover-overlay-opacity ),
105109 pressed- overlay- opacity: map .get ($theme , pressed-overlay-opacity ),
@@ -129,6 +133,10 @@ $_theme-values: (
129133 @include state .pressed ($selectors ) {
130134 @include _set-box-shadow (state .get-pressed-state ($shadow-map ));
131135 }
136+
137+ @include state .disabled ($selectors ) {
138+ @include _set-box-shadow (state .get-disabled-state ($shadow-map ));
139+ }
132140}
133141
134142///
@@ -188,10 +196,12 @@ $_theme-values: (
188196
189197 $theme : (
190198 shadow : state .get-default-state ($shadow-map ),
199+ disabled- shadow: state .get-disabled-state ($shadow-map ),
191200 focus- shadow: state .get-focus-state ($shadow-map ),
192201 hover- shadow: state .get-hover-state ($shadow-map ),
193202 pressed- shadow: state .get-pressed-state ($shadow-map ),
194203 overlay- opacity: state .get-default-state ($opacity-map ),
204+ disabled- overlay- opacity: state .get-disabled-state ($opacity-map ),
195205 focus- overlay- opacity: state .get-focus-state ($opacity-map ),
196206 hover- overlay- opacity: state .get-hover-state ($opacity-map ),
197207 pressed- overlay- opacity: state .get-pressed-state ($opacity-map ),
@@ -236,6 +246,11 @@ $_theme-values: (
236246 state .get-default-state ($elevation-map ),
237247 $shadow-color
238248 ),
249+ disabled :
250+ _resolve-box-shadow-by-dp (
251+ state .get-disabled-state ($elevation-map ),
252+ $shadow-color
253+ ),
239254 focus:
240255 _resolve-box-shadow-by-dp (
241256 state .get-focus-state ($elevation-map ),
@@ -263,6 +278,8 @@ $_theme-values: (
263278 @return (
264279 default :
265280 _resolve-overlay-opacity-by-dp (state .get-default-state ($elevation-map )),
281+ disabled :
282+ _resolve-overlay-opacity-by-dp (state .get-disabled-state ($elevation-map )),
266283 focus: _resolve-overlay-opacity-by-dp (state .get-focus-state ($elevation-map )),
267284 hover: _resolve-overlay-opacity-by-dp (state .get-hover-state ($elevation-map )),
268285 pressed:
0 commit comments