Skip to content

Commit

Permalink
Use text colour and background colour variables in warning text
Browse files Browse the repository at this point in the history
  • Loading branch information
owenatgov committed Mar 28, 2024
1 parent 2dd9c90 commit 5f9e6ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ For advice on how to use these release notes see [our guidance on staying up to

## Unreleased

### Fixes

We've made fixes to GOV.UK Frontend in the following pull requests:

- [#4906: Update the icon in the warning text component to match the defined text colour and background colour, rather than always being white on black](https://github.com/alphagov/govuk-frontend/pull/4906)

## GOV.UK Frontend v5.3.0 (Feature release)

### New features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

// When a user customises their colours the background colour will often be removed.
// Adding a border to the component keeps it's shape as a circle.
border: 3px solid govuk-colour("black");
border: 3px solid $govuk-text-colour;
border-radius: 50%;

color: govuk-colour("white");
background: govuk-colour("black");
color: $govuk-body-background-colour;
background: $govuk-text-colour;

font-size: 30px;
line-height: 29px;
Expand Down

0 comments on commit 5f9e6ca

Please sign in to comment.