-
Notifications
You must be signed in to change notification settings - Fork 11
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
Update documentation for $govuk-assets-path #309
Comments
You should definitely be able to override |
So if I do
The console reports If I change 'my' stylesheet to
The console reports The use of |
Ah, that's helped me understand it, thank you. So to summarise, the current documentation works for users importing using All of our documentation does assume that users will be importing using |
It seems that way from my experience so far. It seems that this is the way SASS is going so that the global scope is used as little as possible.
Going back through the history of the repo I can see someone else on the team changed the SCSS from |
@claireashworth to check on this with @36degrees. |
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: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.
The text was updated successfully, but these errors were encountered: