Skip to content

Commit

Permalink
codelab: enable HighContrast mode
Browse files Browse the repository at this point in the history
  • Loading branch information
twerske committed May 11, 2022
1 parent 4dd6f7f commit 709fc82
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/shop/shop.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@use '@angular/material' as mat;

// TODO: #12. Enable HighContrast mode
@use '@angular/cdk';

:host {
display: flex;
Expand Down Expand Up @@ -81,6 +82,10 @@
background-color: mat.get-color-from-palette(mat.$pink-palette, A100);

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

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

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

0 comments on commit 709fc82

Please sign in to comment.