We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac00c5e commit d897a0cCopy full SHA for d897a0c
src/material/snack-bar/snack-bar.ts
@@ -201,8 +201,7 @@ export class MatSnackBar implements OnDestroy {
201
this._breakpointObserver.observe(Breakpoints.HandsetPortrait).pipe(
202
takeUntil(overlayRef.detachments())
203
).subscribe(state => {
204
- const classList = overlayRef.overlayElement.classList;
205
- state.matches ? classList.add(this.handsetCssClass) : classList.remove(this.handsetCssClass);
+ overlayRef.overlayElement.classList.toggle(this.handsetCssClass, state.matches);
206
});
207
208
if (config.announcementMessage) {
0 commit comments