Skip to content

Commit 86e9e52

Browse files
authored
fix(multiple): remove .import.scss and -legacy-index.scss files (#27571)
BREAKING CHANGE: `@import` of Angular Material and Angular CDK Sass is no longer supported. Please use `@use` instead.
1 parent dfc3d10 commit 86e9e52

File tree

180 files changed

+39
-1681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+39
-1681
lines changed

.stylelintrc.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@
4343
"filePattern": "\\.scss$"
4444
}
4545
],
46-
"material/no-import": [
47-
true,
48-
{
49-
"exclude": "\\.import\\.scss$"
50-
}
51-
],
46+
"material/no-import": true,
5247
"material/no-ampersand-beyond-selector-start": [
5348
true,
5449
{

src/cdk/a11y/_index.import.scss

-2
This file was deleted.

src/cdk/overlay/_index.import.scss

-13
This file was deleted.

src/cdk/text-field/_index.import.scss

-2
This file was deleted.

src/material-experimental/column-resize/_column-resize.import.scss

-9
This file was deleted.

src/material-experimental/popover-edit/_popover-edit.import.scss

-13
This file was deleted.

src/material-experimental/selection/_selection.import.scss

-4
This file was deleted.

src/material/BUILD.bazel

+4-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ sass_library(
2323
name = "sass_lib",
2424
srcs = [
2525
"_index.scss",
26-
"_theming.scss",
2726
"_token-theming.scss",
2827
],
2928
deps = [
@@ -54,14 +53,14 @@ ng_package(
5453
":package_json",
5554
":sass_lib",
5655
"//src/material/core:theming_scss_lib",
57-
"//src/material/prebuilt-themes:deeppurple-amber",
58-
"//src/material/prebuilt-themes:indigo-pink",
59-
"//src/material/prebuilt-themes:pink-bluegrey",
60-
"//src/material/prebuilt-themes:purple-green",
6156
"//src/material/legacy-prebuilt-themes:deeppurple-amber",
6257
"//src/material/legacy-prebuilt-themes:indigo-pink",
6358
"//src/material/legacy-prebuilt-themes:pink-bluegrey",
6459
"//src/material/legacy-prebuilt-themes:purple-green",
60+
"//src/material/prebuilt-themes:deeppurple-amber",
61+
"//src/material/prebuilt-themes:indigo-pink",
62+
"//src/material/prebuilt-themes:pink-bluegrey",
63+
"//src/material/prebuilt-themes:purple-green",
6564
] + MATERIAL_SCSS_LIBS,
6665
nested_packages = ["//src/material/schematics:npm_package"],
6766
tags = ["release-package"],

src/material/_theming.scss

-43
This file was deleted.

src/material/autocomplete/_autocomplete-theme.import.scss

-1
This file was deleted.

src/material/badge/_badge-legacy-index.scss

-3
This file was deleted.

src/material/badge/_badge-theme.import.scss

-11
This file was deleted.

src/material/bottom-sheet/_bottom-sheet-legacy-index.scss

-2
This file was deleted.

src/material/bottom-sheet/_bottom-sheet-theme.import.scss

-10
This file was deleted.

src/material/button-toggle/_button-toggle-legacy-index.scss

-2
This file was deleted.

src/material/button-toggle/_button-toggle-theme.import.scss

-15
This file was deleted.

src/material/button-toggle/_button-toggle-variables.import.scss

-1
This file was deleted.

src/material/button/_button-base.import.scss

-4
This file was deleted.

src/material/button/_button-theme.import.scss

-13
This file was deleted.

src/material/card/_card-theme.import.scss

-3
This file was deleted.

src/material/checkbox/_checkbox-theme.import.scss

-10
This file was deleted.

src/material/chips/_chips-theme.import.scss

-4
This file was deleted.

src/material/core/BUILD.bazel

-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,9 @@ ALL_THEMING_FILES = [
4646
# on the `_all-typography` file.
4747
"_core.scss",
4848
"color/_all-color.scss",
49-
"color/_all-color.import.scss",
5049
"density/private/_all-density.scss",
51-
"density/private/_all-density.import.scss",
5250
"theming/_all-theme.scss",
53-
"theming/_all-theme.import.scss",
5451
"typography/_all-typography.scss",
55-
"typography/_all-typography.import.scss",
5652
]
5753

5854
sass_library(

src/material/core/_core-legacy-index.scss

-16
This file was deleted.

src/material/core/_core.import.scss

-60
This file was deleted.

src/material/core/color/_all-color.import.scss

-53
This file was deleted.

src/material/core/color/_color-legacy-index.scss

-1
This file was deleted.

src/material/core/density/private/_all-density.import.scss

-15
This file was deleted.

src/material/core/density/private/_compatibility.import.scss

-4
This file was deleted.

0 commit comments

Comments
 (0)