Skip to content

Commit

Permalink
Merge pull request #2186 from alphagov/warning-text-hcm
Browse files Browse the repository at this point in the history
Fix display of warning text in Edge when Windows High Contrast Mode is enabled
  • Loading branch information
36degrees authored Apr 14, 2021
2 parents 3480696 + 31f78f9 commit ffe72e5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ This was added in [pull request #2164: Enable cookie banner to set link styled a
- [#2132: Improve vertical alignment of phase banner tag on mobile devices](https://github.com/alphagov/govuk-frontend/pull/2132) – thanks to [@matthewmascord](https://github.com/matthewmascord) for contributing this.
- [#2157: Use pointer cursor for 'Menu' button in header](https://github.com/alphagov/govuk-frontend/pull/2157) – thanks to [@MalcolmVonMoJ](https://github.com/MalcolmVonMoJ) for contributing this.
- [#2171: Fix padding on GOV.UK logo affecting hover and focus states](https://github.com/alphagov/govuk-frontend/pull/2171)
- [#2186: Fix display of warning text in Edge when Windows High Contrast Mode is enabled](https://github.com/alphagov/govuk-frontend/pull/2186)

## 3.11.0 (Feature release)

Expand Down
10 changes: 10 additions & 0 deletions src/govuk/components/warning-text/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
// Prevent the exclamation mark from being included when the warning text
// is copied, for example.
user-select: none;

// Improve rendering in Windows High Contrast Mode (Edge), where a
// readability backplate behind the exclamation mark obscures the circle
forced-color-adjust: none;

@media screen and (forced-colors: active) {
border-color: windowText;
color: windowText;
background: transparent;
}
}

.govuk-warning-text__text {
Expand Down

0 comments on commit ffe72e5

Please sign in to comment.