Skip to content

Commit

Permalink
Merge pull request #4906 from alphagov/sass-vars-in-wanring-text
Browse files Browse the repository at this point in the history
Update the icon in the warning text component to match the defined text colour and background colour, rather than always being white on black
  • Loading branch information
owenatgov committed Apr 3, 2024
2 parents 6c94b20 + 4ceb2c8 commit 387860a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/govuk/components/warning-text/_index.scss
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 387860a

Please sign in to comment.