Skip to content

Remove trailing /index of @import statements in v6.0.0 docs#601

Merged
romaricpascal merged 1 commit into
mainfrom
drop-import-trailing-index
Feb 23, 2026
Merged

Remove trailing /index of @import statements in v6.0.0 docs#601
romaricpascal merged 1 commit into
mainfrom
drop-import-trailing-index

Conversation

@romaricpascal
Copy link
Copy Markdown
Member

v6.0.0 only supports Dart Sass 1.79+, which will automatically loads the index.scss or _index.scss files if the path resolves to a folder.

Only the content of the v6.0.0 docs has been updated, as v5.0.0 and v4.0.0 still support Ruby Sass and LibSass which would need the full path to the imported file.

Fixes #600

v6.0.0 only supports Dart Sass 1.79+, which will automatically loads the `index.scss`
or `_index.scss` files if the path resolves to a folder.

Only the content of the v6.0.0 docs has been updated, as v5.0.0 and v4.0.0 still support
Ruby Sass and LibSass which would need the full path to the imported file.
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 20, 2026

Deploy Preview for govuk-frontend-docs-preview ready!

Name Link
🔨 Latest commit 871ca37
🔍 Latest deploy log https://app.netlify.com/projects/govuk-frontend-docs-preview/deploys/6998878413f45f00082d748e
😎 Deploy Preview https://deploy-preview-601--govuk-frontend-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

@domoscargin domoscargin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note that we should also be doing something about our components def in PackageContents at some point.

Currently it's matching anything between @import and /index, so I guess its probably something to change when we actually install a version of govuk-frontend that doesn't include those /index strings.

The actual changes here look good though!

@romaricpascal
Copy link
Copy Markdown
Member Author

Just a note that we should also be doing something about our components def in PackageContents at some point.

Yeah, noted that on Slack on Friday. I think it's part of an issue to remove /index inside GOV.UK Frontend itself. I'll draft that shortly 😊

@romaricpascal romaricpascal merged commit fb5b93a into main Feb 23, 2026
5 checks passed
@romaricpascal romaricpascal deleted the drop-import-trailing-index branch February 23, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove /index from code examples in Frontend docs

2 participants