@angular/material-experimental 14.0.3 → 14.1.0-next.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 (87) hide show
  1. package/esm2020/mdc-button/button.mjs +5 -5
  2. package/esm2020/mdc-button/fab.mjs +9 -9
  3. package/esm2020/mdc-button/icon-button.mjs +5 -5
  4. package/esm2020/mdc-checkbox/checkbox.mjs +15 -3
  5. package/esm2020/mdc-chips/chip-option.mjs +2 -2
  6. package/esm2020/mdc-chips/chip-row.mjs +2 -2
  7. package/esm2020/mdc-chips/chip.mjs +2 -2
  8. package/esm2020/mdc-core/option/option.mjs +2 -2
  9. package/esm2020/mdc-form-field/form-field.mjs +8 -2
  10. package/esm2020/mdc-list/action-list.mjs +2 -2
  11. package/esm2020/mdc-list/list.mjs +2 -2
  12. package/esm2020/mdc-list/nav-list.mjs +2 -2
  13. package/esm2020/mdc-list/selection-list.mjs +2 -2
  14. package/esm2020/mdc-list/testing/list-harness-filters.mjs +1 -1
  15. package/esm2020/mdc-list/testing/nav-list-harness.mjs +8 -2
  16. package/esm2020/mdc-menu/menu.mjs +3 -3
  17. package/esm2020/mdc-radio/radio.mjs +2 -2
  18. package/esm2020/mdc-slide-toggle/slide-toggle.mjs +2 -2
  19. package/esm2020/mdc-slider/slider.mjs +3 -3
  20. package/esm2020/mdc-tabs/tab-group.mjs +2 -2
  21. package/esm2020/mdc-tabs/tab-header.mjs +2 -2
  22. package/esm2020/mdc-tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  23. package/esm2020/version.mjs +1 -1
  24. package/fesm2015/material-experimental.mjs +1 -1
  25. package/fesm2015/material-experimental.mjs.map +1 -1
  26. package/fesm2015/mdc-button.mjs +16 -16
  27. package/fesm2015/mdc-button.mjs.map +1 -1
  28. package/fesm2015/mdc-checkbox.mjs +14 -2
  29. package/fesm2015/mdc-checkbox.mjs.map +1 -1
  30. package/fesm2015/mdc-chips.mjs +6 -6
  31. package/fesm2015/mdc-chips.mjs.map +1 -1
  32. package/fesm2015/mdc-core.mjs +2 -2
  33. package/fesm2015/mdc-core.mjs.map +1 -1
  34. package/fesm2015/mdc-form-field.mjs +7 -1
  35. package/fesm2015/mdc-form-field.mjs.map +1 -1
  36. package/fesm2015/mdc-list/testing.mjs +9 -1
  37. package/fesm2015/mdc-list/testing.mjs.map +1 -1
  38. package/fesm2015/mdc-list.mjs +8 -8
  39. package/fesm2015/mdc-list.mjs.map +1 -1
  40. package/fesm2015/mdc-menu.mjs +2 -2
  41. package/fesm2015/mdc-menu.mjs.map +1 -1
  42. package/fesm2015/mdc-radio.mjs +2 -2
  43. package/fesm2015/mdc-radio.mjs.map +1 -1
  44. package/fesm2015/mdc-slide-toggle.mjs +2 -2
  45. package/fesm2015/mdc-slide-toggle.mjs.map +1 -1
  46. package/fesm2015/mdc-slider.mjs +2 -2
  47. package/fesm2015/mdc-slider.mjs.map +1 -1
  48. package/fesm2015/mdc-tabs.mjs +6 -6
  49. package/fesm2015/mdc-tabs.mjs.map +1 -1
  50. package/fesm2020/material-experimental.mjs +1 -1
  51. package/fesm2020/material-experimental.mjs.map +1 -1
  52. package/fesm2020/mdc-button.mjs +16 -16
  53. package/fesm2020/mdc-button.mjs.map +1 -1
  54. package/fesm2020/mdc-checkbox.mjs +14 -2
  55. package/fesm2020/mdc-checkbox.mjs.map +1 -1
  56. package/fesm2020/mdc-chips.mjs +6 -6
  57. package/fesm2020/mdc-chips.mjs.map +1 -1
  58. package/fesm2020/mdc-core.mjs +2 -2
  59. package/fesm2020/mdc-core.mjs.map +1 -1
  60. package/fesm2020/mdc-form-field.mjs +7 -1
  61. package/fesm2020/mdc-form-field.mjs.map +1 -1
  62. package/fesm2020/mdc-list/testing.mjs +7 -1
  63. package/fesm2020/mdc-list/testing.mjs.map +1 -1
  64. package/fesm2020/mdc-list.mjs +8 -8
  65. package/fesm2020/mdc-list.mjs.map +1 -1
  66. package/fesm2020/mdc-menu.mjs +2 -2
  67. package/fesm2020/mdc-menu.mjs.map +1 -1
  68. package/fesm2020/mdc-radio.mjs +2 -2
  69. package/fesm2020/mdc-radio.mjs.map +1 -1
  70. package/fesm2020/mdc-slide-toggle.mjs +2 -2
  71. package/fesm2020/mdc-slide-toggle.mjs.map +1 -1
  72. package/fesm2020/mdc-slider.mjs +2 -2
  73. package/fesm2020/mdc-slider.mjs.map +1 -1
  74. package/fesm2020/mdc-tabs.mjs +6 -6
  75. package/fesm2020/mdc-tabs.mjs.map +1 -1
  76. package/mdc-button/_button-base.scss +4 -0
  77. package/mdc-button/index.d.ts +8 -8
  78. package/mdc-checkbox/index.d.ts +8 -0
  79. package/mdc-core/mdc-helpers/_focus-indicators-theme.scss +10 -8
  80. package/mdc-core/mdc-helpers/_focus-indicators.scss +4 -93
  81. package/mdc-core/theming/prebuilt/deeppurple-amber.css +1 -1
  82. package/mdc-core/theming/prebuilt/indigo-pink.css +1 -1
  83. package/mdc-core/theming/prebuilt/pink-bluegrey.css +1 -1
  84. package/mdc-core/theming/prebuilt/purple-green.css +1 -1
  85. package/mdc-list/testing/index.d.ts +3 -0
  86. package/mdc-tabs/_tabs-common.scss +0 -9
  87. package/package.json +3 -3
@@ -61,7 +61,7 @@ export declare function MAT_FAB_DEFAULT_OPTIONS_FACTORY(): MatFabDefaultOptions;
61
61
  export declare class MatAnchor extends MatAnchorBase {
62
62
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
63
63
  static ɵfac: i0.ɵɵFactoryDeclaration<MatAnchor, [null, null, null, { optional: true; }]>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatAnchor, "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
65
65
  }
66
66
 
67
67
  /**
@@ -89,7 +89,7 @@ declare class MatAnchorBase extends MatButtonBase implements OnInit, OnDestroy {
89
89
  export declare class MatButton extends MatButtonBase {
90
90
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
91
91
  static ɵfac: i0.ɵɵFactoryDeclaration<MatButton, [null, null, null, { optional: true; }]>;
92
- static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatButton, " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
93
93
  }
94
94
 
95
95
  /** Base class for all buttons. */
@@ -141,7 +141,7 @@ export declare class MatFabAnchor extends MatAnchor {
141
141
  private _extended;
142
142
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
143
143
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
144
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; "extended": "extended"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
144
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabAnchor, "a[mat-fab]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; "extended": "extended"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
145
145
  }
146
146
 
147
147
  /**
@@ -159,7 +159,7 @@ export declare class MatFabButton extends MatButtonBase {
159
159
  private _extended;
160
160
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
161
161
  static ɵfac: i0.ɵɵFactoryDeclaration<MatFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
162
- static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "extended": "extended"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
162
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatFabButton, "button[mat-fab]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "extended": "extended"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
163
163
  }
164
164
 
165
165
  /** Default FAB options that can be overridden. */
@@ -176,7 +176,7 @@ export declare class MatIconAnchor extends MatAnchorBase {
176
176
  _isIconButton: boolean;
177
177
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
178
178
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconAnchor, [null, null, null, { optional: true; }]>;
179
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
179
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconAnchor, "a[mat-icon-button]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
180
180
  }
181
181
 
182
182
  /**
@@ -188,7 +188,7 @@ export declare class MatIconButton extends MatButtonBase {
188
188
  _isIconButton: boolean;
189
189
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string);
190
190
  static ɵfac: i0.ɵɵFactoryDeclaration<MatIconButton, [null, null, null, { optional: true; }]>;
191
- static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
191
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatIconButton, "button[mat-icon-button]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
192
192
  }
193
193
 
194
194
  /**
@@ -201,7 +201,7 @@ export declare class MatMiniFabAnchor extends MatAnchor {
201
201
  _isFab: boolean;
202
202
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
203
203
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabAnchor, [null, null, null, { optional: true; }, { optional: true; }]>;
204
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
204
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabAnchor, "a[mat-mini-fab]", ["matButton", "matAnchor"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
205
205
  }
206
206
 
207
207
  /**
@@ -214,7 +214,7 @@ export declare class MatMiniFabButton extends MatButtonBase {
214
214
  _isFab: boolean;
215
215
  constructor(elementRef: ElementRef, platform: Platform, ngZone: NgZone, animationMode?: string, _options?: MatFabDefaultOptions | undefined);
216
216
  static ɵfac: i0.ɵɵFactoryDeclaration<MatMiniFabButton, [null, null, null, { optional: true; }, { optional: true; }]>;
217
- static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd]"], false>;
217
+ static ɵcmp: i0.ɵɵComponentDeclaration<MatMiniFabButton, "button[mat-mini-fab]", ["matButton"], { "disabled": "disabled"; "disableRipple": "disableRipple"; "color": "color"; }, {}, never, [".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])", "*", ".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"], false>;
218
218
  }
219
219
 
220
220
  export { }
@@ -48,6 +48,14 @@ export declare class MatCheckbox extends _MatCheckboxBase<MatCheckboxChange> imp
48
48
  protected _createChangeEvent(isChecked: boolean): MatCheckboxChange;
49
49
  protected _getAnimationTargetElement(): HTMLInputElement;
50
50
  _onInputClick(): void;
51
+ /**
52
+ * Prevent click events that come from the `<label/>` element from bubbling. This prevents the
53
+ * click handler on the host from triggering twice when clicking on the `<label/>` element. After
54
+ * the click event on the `<label/>` propagates, the browsers dispatches click on the associated
55
+ * `<input/>`. By preventing clicks on the label by bubbling, we ensure only one click event
56
+ * bubbles when the label is clicked.
57
+ */
58
+ _preventBubblingFromLabel(event: MouseEvent): void;
51
59
  static ɵfac: i0.ɵɵFactoryDeclaration<MatCheckbox, [null, null, null, { attribute: "tabindex"; }, { optional: true; }, { optional: true; }]>;
52
60
  static ɵcmp: i0.ɵɵComponentDeclaration<MatCheckbox, "mat-checkbox", ["matCheckbox"], { "disableRipple": "disableRipple"; "color": "color"; "tabIndex": "tabIndex"; }, {}, never, ["*"], false>;
53
61
  }
@@ -2,28 +2,30 @@
2
2
  @use 'sass:map';
3
3
  @use 'sass:meta';
4
4
 
5
- @mixin _border-color($color) {
6
- .mat-mdc-focus-indicator::before {
7
- border-color: $color;
8
- }
9
- }
5
+ $_prefix: 'mat-mdc';
10
6
 
11
7
  // stylelint-disable-next-line material/theme-mixin-api
12
8
  @mixin color($config-or-theme-or-color) {
13
9
  @if meta.type-of($config-or-theme-or-color) == 'color' {
14
- @include _border-color($config-or-theme-or-color);
10
+ @include mat.private-strong-focus-indicators-customize-focus-indicators((
11
+ border-color: $config-or-theme-or-color
12
+ ), $_prefix);
15
13
  }
16
14
  @else {
17
15
  $config: mat.get-color-config($config-or-theme-or-color);
18
16
  $border-color: mat.get-color-from-palette(map.get($config, primary));
19
- @include _border-color($border-color);
17
+ @include mat.private-strong-focus-indicators-customize-focus-indicators((
18
+ border-color: $border-color
19
+ ), $_prefix);
20
20
  }
21
21
  }
22
22
 
23
23
  // stylelint-disable-next-line material/theme-mixin-api
24
24
  @mixin theme($theme-or-color-config-or-color) {
25
25
  @if meta.type-of($theme-or-color-config-or-color) == 'color' {
26
- @include _border-color($theme-or-color-config-or-color);
26
+ @include mat.private-strong-focus-indicators-customize-focus-indicators((
27
+ border-color: $theme-or-color-config-or-color
28
+ ), $_prefix);
27
29
  }
28
30
  @else {
29
31
  $theme: mat.private-legacy-get-theme($theme-or-color-config-or-color);
@@ -1,104 +1,15 @@
1
- @use '@angular/material' as mat;
2
1
  @use 'sass:map';
2
+ @use '@angular/material' as mat;
3
3
 
4
- /// Mixin that turns on strong focus indicators.
5
- ///
6
- /// @example
7
- /// .my-app {
8
- /// @include mat-mdc-strong-focus-indicators($config);
9
- /// }
10
4
  @mixin strong-focus-indicators($config: ()) {
11
5
  // Default focus indicator config.
12
6
  $default-config: (
13
- border-style: solid,
14
- border-width: 3px,
15
- border-radius: 4px,
7
+ border-color: black,
8
+ display: block,
16
9
  );
17
10
 
18
11
  // Merge default config with user config.
19
12
  $config: map.merge($default-config, $config);
20
- $border-style: map.get($config, border-style);
21
- $border-width: map.get($config, border-width);
22
- $border-radius: map.get($config, border-radius);
23
-
24
- // Base styles for focus indicators.
25
- .mat-mdc-focus-indicator::before {
26
- @include mat.private-fill();
27
- box-sizing: border-box;
28
- pointer-events: none;
29
- border: $border-width $border-style transparent;
30
- border-radius: $border-radius;
31
-
32
- .cdk-high-contrast-active & {
33
- display: none;
34
- }
35
- }
36
-
37
- // By default, all focus indicators are flush with the bounding box of their
38
- // host element. For particular elements (listed below), default inset/offset
39
- // values are necessary to ensure that the focus indicator is sufficiently
40
- // contrastive and renders appropriately.
41
-
42
- .mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,
43
- .mat-mdc-raised-button .mat-mdc-focus-indicator::before,
44
- .mdc-fab .mat-mdc-focus-indicator::before,
45
- .mat-mdc-chip-action-label .mat-mdc-focus-indicator::before {
46
- margin: -($border-width + 2px);
47
- }
48
-
49
- .mat-mdc-outlined-button .mat-mdc-focus-indicator::before {
50
- margin: -($border-width + 3px);
51
- }
52
-
53
- .mat-mdc-focus-indicator.mat-mdc-chip-remove::before {
54
- margin: -$border-width;
55
- }
56
-
57
- // MDC sets a padding a on the button which stretches out the focus indicator.
58
- .mat-mdc-focus-indicator.mat-mdc-chip-remove::before {
59
- left: 8px;
60
- right: 8px;
61
- }
62
-
63
- .mat-mdc-focus-indicator.mat-mdc-tab::before,
64
- .mat-mdc-focus-indicator.mat-mdc-tab-link::before {
65
- margin: 5px;
66
- }
67
-
68
- // These components have to set `border-radius: 50%` in order to support density scaling
69
- // which will clip a square focus indicator so we have to turn it into a circle.
70
- .mat-mdc-checkbox-ripple.mat-mdc-focus-indicator::before,
71
- .mat-radio-ripple.mat-mdc-focus-indicator::before,
72
- .mat-mdc-slider .mat-mdc-focus-indicator::before,
73
- .mat-mdc-slide-toggle .mat-mdc-focus-indicator::before {
74
- border-radius: 50%;
75
- }
76
-
77
- // Render the focus indicator on focus. Defining a pseudo element's
78
- // content will cause it to render.
79
-
80
- // For checkboxes, radios and slide toggles, render the focus indicator when we know
81
- // the hidden input is focused (slightly different for each control).
82
- .mdc-checkbox__native-control:focus ~ .mat-mdc-focus-indicator::before,
83
- .mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before,
84
- .mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before,
85
-
86
- // In the chips the individual actions have focus so we target a different element.
87
- .mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before,
88
-
89
- // For buttons and list items, render the focus indicator when the parent
90
- // button or list item is focused.
91
- .mat-mdc-button-base:focus .mat-mdc-focus-indicator::before,
92
- .mat-mdc-list-item:focus > .mat-mdc-focus-indicator::before,
93
-
94
- // For options, render the focus indicator when the class .mat-mdc-option-active is present.
95
- .mat-mdc-focus-indicator.mat-mdc-option-active::before,
96
-
97
- // In the MDC slider the focus indicator is inside the thumb.
98
- .mdc-slider__thumb--focused .mat-mdc-focus-indicator::before,
99
13
 
100
- // For all other components, render the focus indicator on focus.
101
- .mat-mdc-focus-indicator:focus::before {
102
- content: '';
103
- }
14
+ @include mat.private-strong-focus-indicators-customize-focus-indicators($config, 'mat-mdc');
104
15
  }