Skip to content

Update documentation for $govuk-assets-path #309

Open
@wilsond-gds

Description

@wilsond-gds

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)

See the SASS documentation on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting triageNeeds triaging by teamdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions