Skip to content

Commit

Permalink
FSR-1237: Ensure visibility of LATEST LEVEL in high-contrast mode by …
Browse files Browse the repository at this point in the history
…adjusting background and border styles
  • Loading branch information
Keyurx11 committed Sep 24, 2024
1 parent 5a13eb5 commit bd3981d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/src/sass/components/_latest-levels-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
background-color: #1C70B8;
color: white;
word-spacing: 0.15em;

// Add contrast-specific styles for high contrast mode
@media (forced-colors: active) {
background-color: Canvas; // Ensures light background in contrast mode
border: 2px solid ButtonText; // Adds a visible border in high contrast
color: ButtonText; // Uses the system's high-contrast text color
}
}
&__supplementary {
@include govuk-font($size: 16);
Expand Down

0 comments on commit bd3981d

Please sign in to comment.