Skip to content

Deprecated @import rules in scss #38834

Closed
@koyuki7w

Description

@koyuki7w

Code of Conduct

What article on docs.github.com is affected?

This issue is not about a particular page.

What changes are you suggesting?

In the current version, some scss files use @import rules, which are deprecated. The npm run build command prints a deprecation warning like this:

./src/frame/components/article/ArticleInlineLayout.module.scss
Deprecation Warning on line 0, column 8 of file:///home/koyuki/docs/src/frame/components/article/ArticleInlineLayout.module.scss:0:8:
Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

More info and automated migrator: https://sass-lang.com/d/import

0 | @import "@primer/css/support/variables/layout.scss";

src/frame/components/article/ArticleInlineLayout.module.scss 1:9  root stylesheet

Import trace for requested module:
./src/frame/components/article/ArticleInlineLayout.module.scss
./src/frame/components/article/ArticleInlineLayout.tsx
./src/frame/components/article/ArticlePage.tsx
./src/landings/pages/product.tsx
./src/pages/[versionId]/[productId]/index.tsx

@use rules should be used instead. See https://sass-lang.com/documentation/breaking-changes/import/ for detail.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teammore-information-neededMore information is needed to complete review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions