Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit 709fc82

Browse files
committed
codelab: enable HighContrast mode
1 parent 4dd6f7f commit 709fc82

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/app/shop/shop.component.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
@use '@angular/material' as mat;
1717

1818
// TODO: #12. Enable HighContrast mode
19+
@use '@angular/cdk';
1920

2021
:host {
2122
display: flex;
@@ -81,6 +82,10 @@
8182
background-color: mat.get-color-from-palette(mat.$pink-palette, A100);
8283

8384
// TODO: #12. Enable HighContrast mode
85+
@include cdk.high-contrast() {
86+
outline: solid 1px;
87+
background-color: mat.get-color-from-palette(mat.$pink-palette, 50);
88+
}
8489

8590
text-align: center;
8691
text-transform: uppercase;
@@ -101,5 +106,9 @@
101106
background-color: mat.get-color-from-palette(mat.$light-green-palette, A100);
102107

103108
// TODO: #12. Enable HighContrast mode
109+
@include cdk.high-contrast() {
110+
// outline: solid 1px;
111+
// background-color: mat.get-color-from-palette(mat.$light-green-palette, 50);
112+
}
104113
}
105114
}

0 commit comments

Comments
 (0)