Skip to content

Commit

Permalink
Explicitely set Warning Text font weight
Browse files Browse the repository at this point in the history
There's no guarantee browser defaults of `bold` or `bolder` have not been overriden
so we need to set the font-weight explicitely.

Closes #5279
  • Loading branch information
romaricpascal committed Sep 17, 2024
1 parent bd4153e commit 9927286
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

.govuk-warning-text__icon {
// We apply this here and not at the parent level because the actual text is
// a <strong> and so will always be bold
// wrapped in a `<strong>` which will not inherit the value
@include govuk-typography-weight-bold;
box-sizing: border-box;

Expand Down Expand Up @@ -55,6 +55,9 @@

.govuk-warning-text__text {
@include govuk-text-colour;
// While `<strong>` is styled `bold` or `bolder` by user-agents
// this can be reset by the app's stylesheet so we need to set it ourselves
@include govuk-typography-weight-bold;
display: block;
padding-left: 45px;
}
Expand Down

0 comments on commit 9927286

Please sign in to comment.