Skip to content

Commit b365ba7

Browse files
authored
build: set dev app density class on body (#19424)
Sets the desnity class on the body, rather than the layout element. We'll need this for overlay-based components that implement the density system.
1 parent f82caf4 commit b365ba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dev-app/dev-app/dev-app-layout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ export class DevAppLayout {
159159
for (let i = 0; i < this.densityScales.length; i++) {
160160
const className = `demo-density-${this.densityScales[i]}`;
161161
if (i === this.currentDensityIndex) {
162-
this._element.nativeElement.classList.add(className);
162+
document.body.classList.add(className);
163163
} else {
164-
this._element.nativeElement.classList.remove(className);
164+
document.body.classList.remove(className);
165165
}
166166
}
167167
}

0 commit comments

Comments
 (0)