Skip to content

Commit

Permalink
Use border for small radio buttons
Browse files Browse the repository at this point in the history
This means that they display correctly when colours are overridden in the browser.
  • Loading branch information
36degrees committed Mar 18, 2019
1 parent b5bf0a6 commit 4ac2df0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/radios/_radios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@
}

// • Radio button
//
// We create the 'button' entirely out of 'border' so that they remain
// 'filled' even when colours are overridden in the browser.
.govuk-radios__label::after {
content: "";

Expand Down Expand Up @@ -274,9 +277,7 @@
.govuk-radios__label::after {
top: 14px;
left: 6px;
width: 10px;
height: 10px;
border-width: 1px;
border-width: 6px;
}

// Fix position of hint with small radios
Expand Down

0 comments on commit 4ac2df0

Please sign in to comment.