-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
awaiting triageNeeds triaging by teamNeeds triaging by teamdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
Related documentation
Content at https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#if-you-have-your-own-folder-structure regarding overriding default variables in SASS.
Suggestion
@use wants you to explicitly show which default variables you are overriding; @import is much less strict. I found in order to change the assets path, our team’s code needed to use the new syntax:
@use '../../../node_modules/govuk-frontend/govuk/all' with (
$govuk-assets-path: '/public/'
);
I would imagine this pattern would be used for any default variables you’d want to override.
Evidence (where applicable)
Metadata
Metadata
Assignees
Labels
awaiting triageNeeds triaging by teamNeeds triaging by teamdocumentationImprovements or additions to documentationImprovements or additions to documentation