Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions source/import-css/index.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ You can remove lines that import parts of the CSS you do not need.

You can also import a component and all its dependencies without importing `node_modules/govuk-frontend/dist/govuk/base` first.

To import the button component for example, add the following to your Sass file:
For example, to import the button component, add the following to your Sass file:

```scss
@import "node_modules/govuk-frontend/dist/govuk/components/button/button";
@import "node_modules/govuk-frontend/dist/govuk/components/button";
```
We're deprecating using _<COMPONENT_NAME>.scss files (like node_modules/govuk-frontend/dist/govuk/components/button/button) and will remove them in the next major release of GOV.UK Frontend.
Comment thread
seaemsi marked this conversation as resolved.
Outdated

## Simplify Sass import paths

Expand Down