Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for more frontend settings to be overridden #193

Closed
wants to merge 1 commit into from

Conversation

paulrobertlloyd
Copy link
Collaborator

@paulrobertlloyd paulrobertlloyd commented Sep 29, 2023

govuk-frontend allows a number of values in its SCSS styles to be modified but currently we only allow $govuk-brand-colour and $govuk-font-family to be modified.

This PR adds support for many more, but not all. I’ve excluded those that will be deprecated in v5.0, as well as those relating to form controls as this plugin is not designed to be used on sites that include forms.

Given the number of options, wondering if they should be moved under a top-level option name; perhaps settings? We can still keep brandColour and fontFamily, but deprecate them in favour of settings.brandColour and settings.fontFamily.

This change was done primarily for my own interests, but worth pointing out that without these changes, it is not currently possible to create a site that uses the same link colours as the MOD.UK Design System or page background colours as used by the Home Office Design System; this change would make that possible.

(See also this upstream fix to govuk-frontend: alphagov/govuk-frontend#4268)

To do

  • Move options under a parent option value?
  • Add documentation

@paulrobertlloyd
Copy link
Collaborator Author

Also need to add:

  • $govuk-inverse-button-background-colour
  • $govuk-inverse-button-text-colour

@paulrobertlloyd
Copy link
Collaborator Author

Replaced by #216.

@paulrobertlloyd paulrobertlloyd deleted the all-scss-settings branch December 9, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant