Is this a regression?
The previous version in which this bug was not present was
unknown
Description
Maybe its a good idea to change the docs a bit from
@use '@angular/material' as mat;
html {
color-scheme: light dark;
@include mat.theme((
color: mat.$violet-palette,
typography: Roboto,
density: 0
));
}
to
@use '@angular/material' as mat;
body {
color-scheme: light dark;
@include mat.theme((
color: mat.$violet-palette,
typography: Roboto,
density: 0
));
}
Took me some time to figure out why i have a memory leak after inspecting elements inside devTools
I think this is more a bug within devTools, but for now i would not recommend to add the theming inside the HTML tag
Reproduction
StackBlitz link:
Steps to reproduce:
- https://stackblitz.com/edit/u51vvnk5-2rbgyoyg?file=src%2Fstyles.scss
-
- open devTools and activate the inspect tab
- Have a look at your memory usage (windows)
Expected Behavior
No memory leak in devTools
Actual Behavior
Memory leka in devTools :-)
Environment
- Angular:
22.1.5
- CDK/Material:
22.1.5
- Browser(s):
Chrome latest
- Operating System (e.g. Windows, macOS, Ubuntu):
Windows