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 users to provide a SCSS file that contains settings for GOV.UK Frontend #216

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

paulrobertlloyd
Copy link
Collaborator

Replaces #178 and #193. Depends on #214 1.

Taking a leaf out of the GOV.UK Prototype Kit, and using the same file location (by default), instead of adding additional options to the plugin… and then parsing them… and documenting them… and keeping them in sync with upstream changes in GOV.UK Frontend… no, instead of all that malarkey, allow users to supply a file at {dir.input}/assets/sass/settings.scss. This path can be overridden using the scssSettingsPath option.

Footnotes

  1. There isn’t a code dependency, but this will be included as part of v6.0 which uses govuk-frontend v5, so want to make sure the 2 work together.

@paulrobertlloyd
Copy link
Collaborator Author

An example of this being implemented on the Classnames website: paulrobertlloyd/classnames@78ed4a9

@paulrobertlloyd paulrobertlloyd marked this pull request as ready for review December 9, 2023 18:28
@frankieroberto frankieroberto changed the base branch from main to govuk-frontend-5 December 11, 2023 11:37
Copy link
Contributor

@frankieroberto frankieroberto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

I changed the 'base' of this PR to govuk-frontend-5 to make it easier to review. Merge into the other PR?

@paulrobertlloyd paulrobertlloyd force-pushed the govuk-frontend-5 branch 2 times, most recently from 733c908 to 621886d Compare December 11, 2023 21:36
Base automatically changed from govuk-frontend-5 to main December 11, 2023 21:38
@paulrobertlloyd paulrobertlloyd merged commit 84b0704 into main Dec 11, 2023
2 checks passed
@paulrobertlloyd paulrobertlloyd deleted the sass-settings-file branch December 11, 2023 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants