refactor(*): bundle styles with components#15125
Conversation
* feat(chips-area): add separate theme + grid sample and chips-area changes * chore(): fix spacings
Replace four identical per-component stylesheets with a single shared grid-base.styles.scss compiled to a TS string export. The base directive registers it once into document.adoptedStyleSheets on first instantiation, guarded by platform.isBrowser. All grid variants drop their redundant styleUrl. Note: SSR renders without grid styles (no <style> tag injection); full SSR support is a follow-up.
… build - Clean up scripts/sass.mjs: drop dead code (compileSass, buildComponentStyles, buildBaseStyles, _postProcessor), consolidate shared sass config, use async mkdir, write external source maps for theme presets, throw instead of process.exit on theme failures. - Move incremental rebuild logic into createStylesBuilder with a reverse + forward dep map for O(deps) rebuilds. - watch-styles: use the builder for incremental rebuilds and accept --no-initial via scripts/get-args.mjs to skip the initial full build. - package.json: pass --no-initial to watch:styles in `npm start` so styles aren't built twice on startup.
|
In the Time Picker and Date Picker components, after adding This also breaks some of the samples. The issue is most noticeable in the "Reactive Forms Overview" sample. |
|
For the Button-group We have to remove the |
|
Card component On the elevated version of the Card, only the |
|
Calendar component The |
|
Date Range Picker component: There are We should scope these styles to a two-input-specific selector like |
|
Simple Combo component The Combo styling CSS variables are currently declared only for |
|
Chat component The |
|
Dropdown component However, the component also uses The |
|
Grid Cell Merging All Grid cell bottom borders are missing when there are merged cells. There is a selector that is overriding the intended border styles. |
These files and themes have been superseeded by the scoped styles for each component.
Closes #13770, #16794
Additional information (check all that apply):
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)