igniteui-angular 20.0.0 → 20.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/fesm2022/igniteui-angular.mjs +9 -11
  2. package/fesm2022/igniteui-angular.mjs.map +1 -1
  3. package/index.d.ts +2 -2
  4. package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
  5. package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
  6. package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
  7. package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
  8. package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
  9. package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
  10. package/lib/core/styles/components/button/_button-theme.scss +219 -158
  11. package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
  12. package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
  13. package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
  14. package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
  15. package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
  16. package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
  17. package/lib/core/styles/components/card/_card-theme.scss +5 -16
  18. package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
  19. package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
  20. package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
  21. package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
  22. package/lib/core/styles/components/column-actions/_column-actions-theme.scss +2 -7
  23. package/lib/core/styles/components/combo/_combo-theme.scss +54 -12
  24. package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
  25. package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
  26. package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
  27. package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
  28. package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
  29. package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
  30. package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
  31. package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
  32. package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
  33. package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
  34. package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
  35. package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
  36. package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
  37. package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
  38. package/lib/core/styles/components/input/_input-group-theme.scss +272 -21
  39. package/lib/core/styles/components/label/_label-theme.scss +2 -4
  40. package/lib/core/styles/components/list/_list-theme.scss +42 -66
  41. package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
  42. package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
  43. package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
  44. package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
  45. package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
  46. package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
  47. package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
  48. package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
  49. package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
  50. package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
  51. package/lib/core/styles/components/select/_select-theme.scss +35 -7
  52. package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
  53. package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
  54. package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
  55. package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
  56. package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
  57. package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
  58. package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
  59. package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
  60. package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
  61. package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
  62. package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
  63. package/lib/core/styles/themes/_core.scss +6 -0
  64. package/lib/core/styles/themes/generators/_base.scss +146 -58
  65. package/migrations/migration-collection.json +5 -0
  66. package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
  67. package/migrations/update-20_0_2/index.d.ts +3 -0
  68. package/migrations/update-20_0_2/index.js +18 -0
  69. package/package.json +1 -1
  70. package/styles/igniteui-angular-dark.css +1 -1
  71. package/styles/igniteui-angular.css +1 -1
  72. package/styles/igniteui-bootstrap-dark.css +1 -1
  73. package/styles/igniteui-bootstrap-light.css +1 -1
  74. package/styles/igniteui-dark-green.css +1 -1
  75. package/styles/igniteui-fluent-dark-excel.css +1 -1
  76. package/styles/igniteui-fluent-dark-word.css +1 -1
  77. package/styles/igniteui-fluent-dark.css +1 -1
  78. package/styles/igniteui-fluent-light-excel.css +1 -1
  79. package/styles/igniteui-fluent-light-word.css +1 -1
  80. package/styles/igniteui-fluent-light.css +1 -1
  81. package/styles/igniteui-indigo-dark.css +1 -1
  82. package/styles/igniteui-indigo-light.css +1 -1
  83. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  84. package/styles/maps/igniteui-angular.css.map +1 -1
  85. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  86. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  87. package/styles/maps/igniteui-dark-green.css.map +1 -1
  88. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  89. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  90. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  91. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  92. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  93. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  94. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  95. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -1,9 +1,16 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:meta';
3
3
  @use 'sass:color';
4
+ @use 'sass:list';
5
+ @use 'sass:string';
4
6
  @use '../../base' as *;
5
7
  @use '../../themes/schemas' as *;
6
8
 
9
+ @forward './flat-button-theme';
10
+ @forward './contained-button-theme';
11
+ @forward './outlined-button-theme';
12
+ @forward './fab-button-theme';
13
+
7
14
  ////
8
15
  /// @group themes
9
16
  /// @access public
@@ -39,7 +46,7 @@
39
46
  /// @param {Color} $resting-shadow [null] - The shadow of the button in its idle state.
40
47
  /// @param {Color} $hover-shadow [null] - The shadow of the button in its hover state.
41
48
  /// @param {Color} $focus-shadow [null] - The shadow of the button in its focus state.
42
- /// @param {Color} $active-shadow [null] - The shadow of the button in its focus state.
49
+ /// @param {Color} $active-shadow [null] - The shadow of the button in its active state.
43
50
  /// @param {Color} $disabled-background [null] - The disabled background color of the button.
44
51
  /// @param {Color} $disabled-foreground [null] - The disabled text color of the button.
45
52
  /// @param {Color} $disabled-icon-color [null] - The disabled icon color of the button.
@@ -122,61 +129,39 @@
122
129
  }
123
130
 
124
131
  @if not($foreground) and $background {
125
- $foreground: text-contrast($background);
132
+ $foreground: adaptive-contrast(var(--background));
126
133
  }
127
134
 
128
- @if not($hover-background) and $background {
129
- @if meta.type-of($background) == 'color' {
130
- $hover-background: color.scale($background, $lightness: 5%);
131
- }
135
+ @if not($icon-color) and $background {
136
+ $icon-color: adaptive-contrast(var(--background));
132
137
  }
133
138
 
134
139
  @if not($hover-foreground) and $hover-background {
135
- @if meta.type-of($hover-background) == 'color' {
136
- $hover-foreground: text-contrast($hover-background);
137
- }
138
- }
139
-
140
- @if not($icon-color) and $background {
141
- @if meta.type-of($background) == 'color' {
142
- $icon-color: text-contrast($background);
143
- }
140
+ $hover-foreground: adaptive-contrast(var(--hover-background));
144
141
  }
145
142
 
146
143
  @if not($icon-color-hover) and $hover-foreground {
147
- @if meta.type-of($hover-background) == 'color' {
148
- $icon-color-hover: $hover-foreground;
149
- }
150
- }
151
-
152
- @if not($focus-background) and $background {
153
- $focus-background: color.scale($background, $lightness: 5%);
144
+ $icon-color-hover: var(--hover-foreground);
154
145
  }
155
146
 
156
147
  @if not($focus-foreground) and $focus-background {
157
- $focus-foreground: text-contrast($focus-background);
158
- }
159
-
160
- @if not($focus-hover-background) and $background {
161
- @if meta.type-of($background) == 'color' {
162
- $focus-hover-background: color.scale($background, $lightness: 5%);
163
- }
148
+ $focus-foreground: adaptive-contrast(var(--focus-background));
164
149
  }
165
150
 
166
151
  @if not($focus-hover-foreground) and $focus-hover-background {
167
- $focus-hover-foreground: text-contrast($focus-hover-background);
152
+ $focus-hover-foreground: adaptive-contrast(var(--focus-hover-background));
168
153
  }
169
154
 
170
155
  @if not($focus-visible-background) and $focus-background {
171
- $focus-visible-background: $focus-background;
156
+ $focus-visible-background: var(--focus-background);
172
157
  }
173
158
 
174
- @if not($focus-visible-foreground) and $focus-foreground {
175
- $focus-visible-foreground: $focus-foreground;
159
+ @if not($focus-visible-foreground) and $focus-visible-background {
160
+ $focus-visible-foreground: adaptive-contrast(var(--focus-visible-background));
176
161
  }
177
162
 
178
163
  @if not($focus-visible-border-color) and $focus-border-color {
179
- $focus-visible-border-color: $focus-border-color;
164
+ $focus-visible-border-color: var(--focus-border-color);
180
165
  }
181
166
 
182
167
  @if not($_resting-shadow) {
@@ -242,7 +227,6 @@
242
227
  disabled-icon-color: $disabled-icon-color,
243
228
  disabled-border-color: $disabled-border-color,
244
229
  size: $size,
245
- theme: map.get($schema, '_meta', 'theme'),
246
230
  ))
247
231
  ));
248
232
  }
@@ -256,28 +240,60 @@
256
240
 
257
241
  /// @deprecated Use the `css-vars` mixin instead.
258
242
  /// @see {mixin} css-vars
259
- /// @param {Map} $theme - The theme used to style the component.
260
- @mixin button($theme) {
243
+ /// @param {Map} $flat [null] - The flat theme used to style the component.
244
+ /// @param {Map} $contained [null] - The contained theme used to style the component.
245
+ /// @param {Map} $outlined [null] - The outlined theme used to style the component.
246
+ /// @param {Map} $fab [null] - The fab theme used to style the component.
247
+ @mixin button($themes...) {
261
248
  $button-width: rem(88px);
249
+ $flat-theme: null;
250
+ $contained-theme: null;
251
+ $outlined-theme: null;
252
+ $fab-theme: null;
253
+ $variant: 'material';
254
+
255
+ $required: ('flat', 'contained', 'outlined', 'fab');
256
+ $added: ();
257
+ $missing: ();
258
+
259
+ @each $key, $theme in meta.keywords($themes) {
260
+ $type: map.get($theme, _meta, type);
261
+
262
+ $added: list.append($added, $key);
263
+
264
+ @if $type == 'flat' {
265
+ $flat-theme: $theme;
266
+ } @else if $type == 'contained' {
267
+ $contained-theme: $theme;
268
+ } @else if $type == 'outlined' {
269
+ $outlined-theme: $theme;
270
+ } @else if $type == 'fab' {
271
+ $fab-theme: $theme;
272
+ }
262
273
 
263
- $variant: map.get($theme, variant);
274
+ $variant: map.get($theme, '_meta', 'theme');
275
+ @include css-vars($theme);
276
+ }
264
277
 
265
- $flat-theme: map.get(map.get($theme, 'themes'), 'flat');
266
- $outlined-theme: map.get(map.get($theme, 'themes'), 'outlined');
267
- $contained-theme: map.get(map.get($theme, 'themes'), 'contained');
268
- $fab-theme: map.get(map.get($theme, 'themes'), 'fab');
278
+ @each $item in $required {
279
+ @if not(list.index($added, $item)) {
280
+ $missing: list.append($missing, '$#{$item}', $separator: comma);
281
+ }
282
+ }
269
283
 
270
- @include css-vars($flat-theme);
271
- @include css-vars($outlined-theme);
272
- @include css-vars($contained-theme);
273
- @include css-vars($fab-theme);
284
+ @if list.length($missing) != 0 {
285
+ @error meta.inspect(string.unquote("Missing theme properties:") #{$missing});
286
+ }
274
287
 
275
- $time: map.get((
276
- 'material': .1s,
277
- 'fluent': .1s,
278
- 'bootstrap': .15s,
279
- 'indigo': .15s
280
- ), $variant);
288
+ $time: map.get(
289
+ (
290
+ 'material': 0.1s,
291
+ 'fluent': 0.1s,
292
+ 'bootstrap': 0.15s,
293
+ 'indigo': 0.15s,
294
+ ),
295
+ $variant
296
+ );
281
297
 
282
298
  $button-transition: color $time ease-in-out,
283
299
  background-color $time ease-in-out,
@@ -292,89 +308,101 @@
292
308
  $button-padding-inline: (
293
309
  comfortable: rem(16px, 16px),
294
310
  cosy: rem(12px, 16px),
295
- compact: rem(8px, 16px)
311
+ compact: rem(8px, 16px),
296
312
  );
297
313
 
298
314
  $button-padding-indigo-inline: (
299
315
  comfortable: rem(24px, 16px),
300
316
  cosy: rem(16px, 16px),
301
- compact: rem(10px, 16px)
317
+ compact: rem(10px, 16px),
302
318
  );
303
319
 
304
320
  $button-padding-material-block: (
305
321
  comfortable: rem(7px, 16px),
306
322
  cosy: rem(4px, 16px),
307
- compact: rem(1px, 16px)
323
+ compact: rem(1px, 16px),
308
324
  );
309
325
 
310
326
  $button-padding-fluent-block: (
311
327
  comfortable: 0,
312
328
  cosy: 0,
313
- compact: 0
329
+ compact: 0,
314
330
  );
315
331
 
316
332
  $button-padding-bootstrap-block: (
317
333
  comfortable: rem(6px, 16px),
318
334
  cosy: rem(4px, 16px),
319
- compact: rem(2px, 16px)
335
+ compact: rem(2px, 16px),
320
336
  );
321
337
 
322
338
  $button-padding-indigo-block: (
323
339
  comfortable: 0,
324
340
  cosy: 0,
325
- compact: 0
341
+ compact: 0,
342
+ );
343
+
344
+ $button-padding-inline: map.get(
345
+ (
346
+ 'material': $button-padding-inline,
347
+ 'fluent': $button-padding-inline,
348
+ 'bootstrap': $button-padding-inline,
349
+ 'indigo': $button-padding-indigo-inline,
350
+ ),
351
+ $variant
352
+ );
353
+
354
+ $button-padding-block: map.get(
355
+ (
356
+ 'material': $button-padding-material-block,
357
+ 'fluent': $button-padding-fluent-block,
358
+ 'bootstrap': $button-padding-bootstrap-block,
359
+ 'indigo': $button-padding-indigo-block,
360
+ ),
361
+ $variant
362
+ );
363
+
364
+ $outlined-button-padding-inline: map.get(
365
+ (
366
+ 'material': $button-padding-inline,
367
+ 'fluent': $button-padding-inline,
368
+ 'bootstrap': $button-padding-inline,
369
+ 'indigo': $button-padding-indigo-inline,
370
+ ),
371
+ $variant
326
372
  );
327
373
 
328
- $button-padding-inline: map.get((
329
- 'material': $button-padding-inline,
330
- 'fluent': $button-padding-inline,
331
- 'bootstrap': $button-padding-inline,
332
- 'indigo': $button-padding-indigo-inline,
333
- ), $variant);
334
-
335
- $button-padding-block: map.get((
336
- 'material': $button-padding-material-block,
337
- 'fluent': $button-padding-fluent-block,
338
- 'bootstrap': $button-padding-bootstrap-block,
339
- 'indigo': $button-padding-indigo-block,
340
- ), $variant);
341
-
342
- $outlined-button-padding-inline: map.get((
343
- 'material': $button-padding-inline,
344
- 'fluent': $button-padding-inline,
345
- 'bootstrap': $button-padding-inline,
346
- 'indigo': $button-padding-indigo-inline,
347
- ), $variant);
348
-
349
- $outlined-button-padding-block: map.get((
350
- 'material': $button-padding-material-block,
351
- 'fluent': $button-padding-fluent-block,
352
- 'bootstrap': $button-padding-bootstrap-block,
353
- 'indigo': $button-padding-indigo-block
354
- ), $variant);
374
+ $outlined-button-padding-block: map.get(
375
+ (
376
+ 'material': $button-padding-material-block,
377
+ 'fluent': $button-padding-fluent-block,
378
+ 'bootstrap': $button-padding-bootstrap-block,
379
+ 'indigo': $button-padding-indigo-block,
380
+ ),
381
+ $variant
382
+ );
355
383
 
356
384
  $button-floating-padding-block: (
357
385
  comfortable: rem(8px),
358
386
  cosy: rem(4px),
359
- compact: 0
387
+ compact: 0,
360
388
  );
361
389
 
362
390
  $button-floating-padding-inline: (
363
391
  comfortable: rem(14px),
364
392
  cosy: rem(10px),
365
- compact: rem(6px)
393
+ compact: rem(6px),
366
394
  );
367
395
 
368
396
  $button-floating-padding-indigo-inline: (
369
397
  comfortable: rem(10px),
370
398
  cosy: rem(8px),
371
- compact: rem(6px)
399
+ compact: rem(6px),
372
400
  );
373
401
 
374
402
  $items-gap: (
375
403
  comfortable: rem(12px),
376
404
  cosy: rem(8px),
377
- compact: rem(4px)
405
+ compact: rem(4px),
378
406
  );
379
407
 
380
408
  $items-gap-indigo-comfortable: rem(8px);
@@ -382,73 +410,102 @@
382
410
  $filtering-row-button-size: (
383
411
  comfortable: rem(40px),
384
412
  cosy: rem(30px),
385
- compact: rem(21px)
413
+ compact: rem(21px),
386
414
  );
387
415
 
388
- $icon-sizes: map.get((
389
- 'material': rem(18px),
390
- 'fluent': rem(18px),
391
- 'bootstrap': rem(18px),
392
- 'indigo': rem(16px),
393
- ), $variant);
416
+ $icon-sizes: map.get(
417
+ (
418
+ 'material': rem(18px),
419
+ 'fluent': rem(18px),
420
+ 'bootstrap': rem(18px),
421
+ 'indigo': rem(16px),
422
+ ),
423
+ $variant
424
+ );
394
425
 
395
426
  $icon-in-button-size: $icon-sizes;
396
427
 
397
- $contained-shadow: map.get((
398
- 'material': var-get($contained-theme, 'resting-shadow'),
399
- 'fluent': none,
400
- 'bootstrap': none,
401
- 'indigo': none
402
- ), $variant);
403
-
404
- $contained-shadow--hover: map.get((
405
- 'material': var-get($contained-theme, 'hover-shadow'),
406
- 'fluent': none,
407
- 'bootstrap': none,
408
- 'indigo': none
409
- ), $variant);
410
-
411
- $contained-shadow--focus: map.get((
412
- 'material': var-get($contained-theme, 'focus-shadow'),
413
- 'fluent': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'),
414
- 'bootstrap': 0 0 0 rem(4px) var-get($contained-theme, 'shadow-color'),
415
- 'indigo': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color')
416
- ), $variant);
417
-
418
- $contained-shadow--active: map.get((
419
- 'material': var-get($contained-theme, 'active-shadow'),
420
- 'fluent': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'),
421
- 'bootstrap': 0 0 0 rem(4px) var-get($contained-theme, 'shadow-color'),
422
- 'indigo': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color')
423
- ), $variant);
424
-
425
- $fab-shadow: map.get((
426
- 'material': var-get($fab-theme, 'resting-shadow'),
427
- 'fluent': none,
428
- 'bootstrap': none,
429
- 'indigo': none
430
- ), $variant);
431
-
432
- $fab-shadow--hover: map.get((
433
- 'material': var-get($fab-theme, 'hover-shadow'),
434
- 'fluent': none,
435
- 'bootstrap': none,
436
- 'indigo': none
437
- ), $variant);
438
-
439
- $fab-shadow--focus: map.get((
440
- 'material': var-get($fab-theme, 'focus-shadow'),
441
- 'fluent': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'),
442
- 'bootstrap': 0 0 0 rem(4px) var-get($fab-theme, 'shadow-color'),
443
- 'indigo': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color')
444
- ), $variant);
445
-
446
- $fab-shadow--active: map.get((
447
- 'material': var-get($fab-theme, 'active-shadow'),
448
- 'fluent': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'),
449
- 'bootstrap': 0 0 0 rem(4px) var-get($fab-theme, 'shadow-color'),
450
- 'indigo': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color')
451
- ), $variant);
428
+ $contained-shadow: map.get(
429
+ (
430
+ 'material': var-get($contained-theme, 'resting-shadow'),
431
+ 'fluent': none,
432
+ 'bootstrap': none,
433
+ 'indigo': none,
434
+ ),
435
+ $variant
436
+ );
437
+
438
+ $contained-shadow--hover: map.get(
439
+ (
440
+ 'material': var-get($contained-theme, 'hover-shadow'),
441
+ 'fluent': none,
442
+ 'bootstrap': none,
443
+ 'indigo': none,
444
+ ),
445
+ $variant
446
+ );
447
+
448
+ $contained-shadow--focus: map.get(
449
+ (
450
+ 'material': var-get($contained-theme, 'focus-shadow'),
451
+ 'fluent': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'),
452
+ 'bootstrap': 0 0 0 rem(4px)
453
+ var-get($contained-theme, 'shadow-color'),
454
+ 'indigo': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'),
455
+ ),
456
+ $variant
457
+ );
458
+
459
+ $contained-shadow--active: map.get(
460
+ (
461
+ 'material': var-get($contained-theme, 'active-shadow'),
462
+ 'fluent': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'),
463
+ 'bootstrap': 0 0 0 rem(4px)
464
+ var-get($contained-theme, 'shadow-color'),
465
+ 'indigo': 0 0 0 rem(3px) var-get($contained-theme, 'shadow-color'),
466
+ ),
467
+ $variant
468
+ );
469
+
470
+ $fab-shadow: map.get(
471
+ (
472
+ 'material': var-get($fab-theme, 'resting-shadow'),
473
+ 'fluent': none,
474
+ 'bootstrap': none,
475
+ 'indigo': none,
476
+ ),
477
+ $variant
478
+ );
479
+
480
+ $fab-shadow--hover: map.get(
481
+ (
482
+ 'material': var-get($fab-theme, 'hover-shadow'),
483
+ 'fluent': none,
484
+ 'bootstrap': none,
485
+ 'indigo': none,
486
+ ),
487
+ $variant
488
+ );
489
+
490
+ $fab-shadow--focus: map.get(
491
+ (
492
+ 'material': var-get($fab-theme, 'focus-shadow'),
493
+ 'fluent': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'),
494
+ 'bootstrap': 0 0 0 rem(4px) var-get($fab-theme, 'shadow-color'),
495
+ 'indigo': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'),
496
+ ),
497
+ $variant
498
+ );
499
+
500
+ $fab-shadow--active: map.get(
501
+ (
502
+ 'material': var-get($fab-theme, 'active-shadow'),
503
+ 'fluent': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'),
504
+ 'bootstrap': 0 0 0 rem(4px) var-get($fab-theme, 'shadow-color'),
505
+ 'indigo': 0 0 0 rem(3px) var-get($fab-theme, 'shadow-color'),
506
+ ),
507
+ $variant
508
+ );
452
509
 
453
510
  %fluent-border {
454
511
  &::after {
@@ -514,10 +571,10 @@
514
571
  igx-grid-filtering-row {
515
572
  @if $variant == 'bootstrap' {
516
573
  --filtering-row-button-size: #{sizable(
517
- #{map.get($filtering-row-button-size, 'compact')},
518
- #{map.get($filtering-row-button-size, 'cosy')},
519
- #{map.get($filtering-row-button-size, 'comfortable')}
520
- )};
574
+ #{map.get($filtering-row-button-size, 'compact')},
575
+ #{map.get($filtering-row-button-size, 'cosy')},
576
+ #{map.get($filtering-row-button-size, 'comfortable')}
577
+ )};
521
578
 
522
579
  %igx-button-display {
523
580
  min-height: var(--filtering-row-button-size);
@@ -771,7 +828,7 @@
771
828
  color: var-get($contained-theme, 'active-foreground');
772
829
  background: var-get($contained-theme, 'active-background');
773
830
  border-color: var-get($contained-theme, 'active-border-color');
774
- box-shadow: var-get($contained-theme, 'hover-shadow');
831
+ box-shadow: var-get($contained-theme, 'active-shadow');
775
832
 
776
833
  igx-icon {
777
834
  color: var-get($contained-theme, 'active-foreground');
@@ -911,7 +968,7 @@
911
968
  color: var-get($fab-theme, 'active-foreground');
912
969
  background: var-get($fab-theme, 'active-background');
913
970
  border-color: var-get($fab-theme, 'active-border-color');
914
- box-shadow: var-get($fab-theme, 'focus-shadow');
971
+ box-shadow: var-get($fab-theme, 'active-shadow');
915
972
 
916
973
  igx-icon {
917
974
  color: var-get($fab-theme, 'active-foreground');
@@ -994,7 +1051,11 @@
994
1051
  /// Uses the 'button' category from the typographic scale.
995
1052
  /// @group typography
996
1053
  /// @param {String} $categories [(text: 'button')] - The category from the typographic scale used for type styles.
997
- @mixin button-typography($categories: (text: 'button')) {
1054
+ @mixin button-typography(
1055
+ $categories: (
1056
+ text: 'button',
1057
+ )
1058
+ ) {
998
1059
  $text: map.get($categories, 'text');
999
1060
 
1000
1061
  %igx-button-display {