What
Update the link mixins to use custom properties for swapping the colours between the different states (hover, active, visited,...):
- investigate if link styles (success, error, muted, text, inverse) can simply override
--govuk-link-colour, --govuk-link-hover-colour, --govuk-link-active-colour, --govuk-link-visited-colour, of if the link mixin needs local custom properties. We may want to pay particular attention to:
- Focus style
- Links wrapping a block of content where the default
--govuk-link-colour may need to be used
- If necessary update
govuk-link-style-default to use local custom properties
- Update the link styles to change the custom properties used by
govuk-link-style-default instead of redefining rules for each pseudo selector
Why
Link styles require a lot of repetitive selectors for each state, by moving to custom properties, we should reduce the size of output CSS
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
What
Update the link mixins to use custom properties for swapping the colours between the different states (hover, active, visited,...):
--govuk-link-colour,--govuk-link-hover-colour,--govuk-link-active-colour,--govuk-link-visited-colour, of if the link mixin needs local custom properties. We may want to pay particular attention to:--govuk-link-colourmay need to be usedgovuk-link-style-defaultto use local custom propertiesgovuk-link-style-defaultinstead of redefining rules for each pseudo selectorWhy
Link styles require a lot of repetitive selectors for each state, by moving to custom properties, we should reduce the size of output CSS
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
govuk-link-style-...mixins to use custom properties