Skip to content

Commit 6f51ab2

Browse files
authored
address comments
1 parent f6643c9 commit 6f51ab2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/cdk/a11y/_a11y.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
@mixin _cdk-optionally-nest-content($selector-context) {
2525
@if ($selector-context == '') {
2626
@content;
27-
} @else {
27+
}
28+
@else {
2829
#{$selector-context} {
2930
@content;
3031
}
@@ -40,8 +41,8 @@
4041
/// @param encapsulation Whether to emit styles for view encapsulation. Values are:
4142
/// * `on` - works for `Emulated`, `Native`, and `ShadowDom`
4243
/// * `off` - works for `None`
43-
/// * `both` - works for all encapsulation modes by emitting the CSS twice (default).
44-
@mixin cdk-high-contrast($target: active, $encapsulation: 'both') {
44+
/// * `any` - works for all encapsulation modes by emitting the CSS twice (default).
45+
@mixin cdk-high-contrast($target: active, $encapsulation: 'any') {
4546
@if ($target != 'active' and $target != 'black-on-white' and $target != 'white-on-black') {
4647
@error 'Unknown cdk-high-contrast value "#{$target}" provided. ' +
4748
'Allowed values are "active", "black-on-white", and "white-on-black"';

0 commit comments

Comments
 (0)