Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(material/schematics): add migration to switch to the new theming API #22304

Merged
merged 1 commit into from
Mar 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 6 additions & 2 deletions src/cdk/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@forward './overlay/overlay' show overlay;
@forward './overlay/overlay' show overlay, $z-index-overlay-container, $z-index-overlay,
$z-index-overlay-backdrop, $dark-backdrop-background;
@forward './a11y/a11y' show a11y-visually-hidden, high-contrast;
@forward './text-field/text-field' show text-field-autosize, text-field-autofill,
text-field-autofill-color;
text-field-autofill-color,
// `text-field` is deprecated, but we have to export it
// here in order for the theming API schematic to work.
text-field;
6 changes: 6 additions & 0 deletions src/material/schematics/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"factory": "./ng-generate/address-form/index",
"schema": "./ng-generate/address-form/schema.json",
"aliases": ["address-form", "material-address-form", "material-addressForm"]
},
"themingApi": {
"description": "Switch the project to the new @use-based Material theming API",
"factory": "./ng-generate/theming-api/index",
"schema": "./ng-generate/theming-api/schema.json",
"aliases": ["theming-api", "sass-api"]
}
}
}
Loading