Material-components-web: [MDCDrawer] No modal variant styles

Created on 24 Jun 2020  路  1Comment  路  Source: material-components/material-components-web

Bug report

When loading the styles for the drawer as said in the documentation (see below)

@use "@material/drawer";
@use "@material/list";

@include drawer.core-styles;
@include list.core-styles;

the styles for the modal variant are no present since I updated to version 7.0.0. If I use the following, everything is fine:

@use "@material/drawer/mdc-drawer";
@use "@material/list";

@include list.core-styles;

Actual behavior

No mdc-drawer--modal class available.

Expected behavior

mdc-drawer--modal class available.

Your Environment:

| Software | Version(s) |
| ---------------- | ---------- |
| MDC Web |7.0.0
| Browser |83.0.4103.116
| Operating System |Arch Linux

bug

Most helpful comment

Thanks for reporting! This is a documentation bug. The correct styles should be:

@use "@material/drawer";
@use "@material/list";

@include drawer.core-styles;
@include drawer.dismissible-core-styles;
@include drawer.modal-core-styles;
@include list.core-styles;

Sending out a fix now.

>All comments

Thanks for reporting! This is a documentation bug. The correct styles should be:

@use "@material/drawer";
@use "@material/list";

@include drawer.core-styles;
@include drawer.dismissible-core-styles;
@include drawer.modal-core-styles;
@include list.core-styles;

Sending out a fix now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

traviskaufman picture traviskaufman  路  4Comments

7iomka picture 7iomka  路  3Comments

jimyhdolores picture jimyhdolores  路  3Comments

cintaccs picture cintaccs  路  3Comments

m-alzam picture m-alzam  路  3Comments