Skip to content

[drawer] Persistent and Permanent variant Drawers allows overriding styles in theme using modal class #47580

@ZeeshanTamboli

Description

@ZeeshanTamboli

Steps to reproduce

Steps:

  1. Open this link to live example: https://stackblitz.com/edit/github-bn7zjlhr?file=src%2FApp.tsx
  2. Notice the background-color style applied to modal via theme is applied to the persistent drawer.

Current behavior

The background-color style applied to modal via theme is applied to the persistent or permanent variant drawers.

Expected behavior

modal styles are for temporary variant. So, the styles applied to them should not be applied to the drawer of permanent or persistent variants.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: drawer, modal, theme

Metadata

Metadata

Labels

scope: drawerChanges related to the drawer.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions