Skip to content

Commit

Permalink
Adjust dividers with small radios
Browse files Browse the repository at this point in the history
  • Loading branch information
36degrees authored and aliuk2012 committed Apr 11, 2019
1 parent 384f272 commit b645ac1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/radios/_radios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@
clear: both;
}

.govuk-radios__divider {
width: $govuk-small-radios-size;
margin-bottom: govuk-spacing(1);
}

// Hover state for small radios.
//
// We use a hover state for small radios because the touch target size
Expand Down
17 changes: 17 additions & 0 deletions src/components/radios/radios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -590,3 +590,20 @@ examples:
text: happiness
- value: funkiness
text: funkiness

- name: small with a divider
data:
idPrefix: example-small-divider
name: example
fieldset:
legend:
text: How do you want to sign in?
classes: govuk-radios--small
items:
- value: governement-gateway
text: Use Government Gateway
- value: govuk-verify
text: Use GOV.UK Verify
- divider: or
- value: create-account
text: Create an account

0 comments on commit b645ac1

Please sign in to comment.