Bump styles for existing GOVUK Frontend radios

We have some radios using the GOVUK Frontend
radios component in this app. They are version
2.x.x though so this bumps their styles to version
3.x.x to get the new focus style.
This commit is contained in:
Tom Byers
2020-09-16 14:00:15 +01:00
parent ebb84fcf08
commit b525015765

View File

@@ -177,8 +177,9 @@ $govuk-radios-focus-width: $govuk-focus-width + 1px;
background: currentColor;
}
// Focused state
.multiple-choice [type=radio]:focus + label::before {
// Focused state (includes targeting for GOVUK radios, to apply version 3.x.x styles)
.multiple-choice [type=radio]:focus + label::before,
.govuk-radios__input:focus + .govuk-radios__label::before {
border-width: 4px;
// Since box-shadows are removed when users customise their colours we set a
// transparent outline that is shown instead.