From 22c9f443cf6108808ed959b52c6ceed6624d75f5 Mon Sep 17 00:00:00 2001 From: Kevin Dew Date: Fri, 5 Oct 2018 19:41:57 +0100 Subject: [PATCH] Set text colour for radios divider When testing component isolation on GOV.UK we noticed that text colour isn't applied to a radios and instead it inherits this value. I'm assuming this behaviour isn't intentional as all the neighbouring fieldset components all have a colour set. --- CHANGELOG.md | 10 +++++++--- src/components/radios/_radios.scss | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7b4abe39c..68fee90a02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,10 @@ ([PR #1007](https://github.com/alphagov/govuk-frontend/pull/1007)) +- Set text colour for radios divider + + ([PR 1023](https://github.com/alphagov/govuk-frontend/pull/1023)) + - Pull Request Title goes here Description goes here (optional) @@ -61,7 +65,7 @@ You can now pass additional attributes to links in header, footer, breadcrumbs, tabs and error-summary components ([PR #993](https://github.com/alphagov/govuk-frontend/pull/993)) - + - Fix issue with conditional form content and inline form controls When inline variant of form controls is used with conditional content, we force @@ -239,9 +243,9 @@ ([PR #960](https://github.com/alphagov/govuk-frontend/pull/960)) - Use text colour on focus for better contrast - + Updates the focus styles of links in GOV.UK Frontend so they pass WCAG contrast requirements. - + ([PR #982](https://github.com/alphagov/govuk-frontend/pull/982)) 🆕 New features: diff --git a/src/components/radios/_radios.scss b/src/components/radios/_radios.scss index feaf51c5a0..ca8f03e867 100644 --- a/src/components/radios/_radios.scss +++ b/src/components/radios/_radios.scss @@ -156,6 +156,7 @@ .govuk-radios__divider { $govuk-divider-size: $govuk-radios-size !default; @include govuk-font($size: 19); + @include govuk-text-colour; width: $govuk-divider-size; margin-bottom: govuk-spacing(2); text-align: center;