Skip to content

Commit 4b52d33

Browse files
authored
Add deprecation information
1 parent fb5b93a commit 4b52d33

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

source/import-css/index.html.md.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,12 @@ You can remove lines that import parts of the CSS you do not need.
112112

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

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

117117
```scss
118-
@import "node_modules/govuk-frontend/dist/govuk/components/button/button";
118+
@import "node_modules/govuk-frontend/dist/govuk/components/button";
119119
```
120+
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.
120121

121122
## Simplify Sass import paths
122123

0 commit comments

Comments
 (0)