File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed
material-experimental/mdc-helpers Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 15
15
@include angular-material-mdc-typography ();
16
16
@include mat-edit-typography (mat-typography-config ());
17
17
18
- // MDC does not yet have an equivalent to `mat-core` to include this in.
19
- @include mat-mdc-strong-focus-indicators-base ();
20
-
21
18
// Include base styles for strong focus indicators.
22
19
.demo-strong-focus {
23
20
@include mat-strong-focus-indicators ();
Original file line number Diff line number Diff line change @@ -310,9 +310,9 @@ $mat-typography-level-mappings: (
310
310
}
311
311
}
312
312
313
- /// Mixin that applies base styles required for focus indicators to render appropriately.
314
- /// Should be included once in your app .
315
- @mixin mat -mdc-strong-focus-indicators-base () {
313
+ // Mixin that applies base styles required for focus indicators to render appropriately.
314
+ // Private mixin included within `_mat-mdc-core` .
315
+ @mixin _mat -mdc-strong-focus-indicators-base () {
316
316
// Ensure that focus indicator host elements are positioned so that the focus indicator
317
317
// pseudo element within is positioned relatively to the host.
318
318
.mat-mdc-focus-indicator {
Original file line number Diff line number Diff line change 15
15
@mixin mat-core ($typography-config : null) {
16
16
@include angular-material-typography ($typography-config );
17
17
@include mat-ripple ();
18
- @include mat-strong-focus-indicators-base ();
19
18
@include cdk-a11y ();
20
19
@include cdk-overlay ();
21
20
@include cdk-text-field ();
21
+
22
+ @include _mat-strong-focus-indicators-base ();
23
+ @include _mat-mdc-core ();
22
24
}
23
25
24
26
// Mixin that renders all of the core styles that depend on the theme.
55
57
}
56
58
}
57
59
}
60
+
61
+ // Mixin that renders all of the core MDC styles.
62
+ @mixin _mat-mdc-core () {
63
+ @include _mat-mdc-strong-focus-indicators-base ();
64
+ }
Original file line number Diff line number Diff line change 100
100
}
101
101
}
102
102
103
- /// Mixin that applies base styles required for focus indicators to render appropriately.
104
- /// Automatically included within `mat-core`, should not be directly included in your app .
105
- @mixin mat -strong-focus-indicators-base () {
106
- // Ensure that focus indicator host elements are positioned so that the focus indicator
103
+ // Mixin that applies base styles required for focus indicators to render appropriately.
104
+ // Private mixin included within `mat-core`.
105
+ @mixin _mat -strong-focus-indicators-base () {
106
+ // Ensures that focus indicator host elements are positioned so that the focus indicator
107
107
// pseudo element within is positioned relatively to the host.
108
108
.mat-focus-indicator {
109
109
position : relative ;
You can’t perform that action at this time.
0 commit comments