|
5 | 5 | @use '../core/typography/typography-utils'; |
6 | 6 | @use '../core/density/private/compatibility'; |
7 | 7 | @use './stepper-variables'; |
| 8 | +@use '../../cdk/a11y'; |
8 | 9 |
|
9 | 10 | @mixin color($config-or-theme) { |
10 | 11 | $config: theming.get-color-config($config-or-theme); |
|
15 | 16 | $warn: map.get($config, warn); |
16 | 17 |
|
17 | 18 | .mat-step-header { |
| 19 | + @include a11y.high-contrast(active, off) { |
| 20 | + margin-bottom: 1px; |
| 21 | + margin-top: 1px; |
| 22 | + |
| 23 | + &:not([aria-disabled]), |
| 24 | + &[aria-disabled='false'] { |
| 25 | + outline: solid 1px; |
| 26 | + &.cdk-keyboard-focused, &.cdk-program-focused { |
| 27 | + outline: solid 3px; |
| 28 | + } |
| 29 | + } |
| 30 | + |
| 31 | + &[aria-selected='false'] { |
| 32 | + .mat-step-icon, .mat-step-label { |
| 33 | + opacity: 0.5; |
| 34 | + } |
| 35 | + } |
| 36 | + } |
| 37 | + |
18 | 38 | &.cdk-keyboard-focused, |
19 | 39 | &.cdk-program-focused, |
20 | 40 | &:hover:not([aria-disabled]), |
|
100 | 120 | background-color: theming.get-color-from-palette($background, card); |
101 | 121 | } |
102 | 122 |
|
| 123 | + .mat-horizontal-content-container, .mat-vertical-content-container { |
| 124 | + @include a11y.high-contrast(active, off) { |
| 125 | + outline: solid 1px; |
| 126 | + } |
| 127 | + } |
| 128 | + |
103 | 129 | .mat-stepper-vertical-line::before { |
104 | 130 | border-left-color: theming.get-color-from-palette($foreground, divider); |
| 131 | + @include a11y.high-contrast(active, off) { |
| 132 | + border-left-style: none; |
| 133 | + } |
105 | 134 | } |
106 | 135 |
|
107 | 136 | .mat-horizontal-stepper-header::before, |
|
0 commit comments