question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to customize backdrop of select and popover

See original GitHub issue
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Select and popover components each generate a backdrop menu-label for select material-ui-popover-wrapper for popover They both have z-index of 1300 and i think there should be an ability to customize it in the same way you can that for other aspects of the component.

Current Behavior 😯

Inline styles are used and you have to use !important to change them. Since this is the generated div : <div role="presentation" id="menu-label" style="position: fixed; z-index: 1300; right: 0px; bottom: 0px; top: 0px; left: 0px;">

Examples 🌈

MuiSelect: {
		root: {
			height: 34,
		},
		backdrop: {
			z-index: 1500,
		},
	},

Context 🔦

I have a select component inside a popover. Another component has a z-index: 1301 set by me so it will show over the popover backdrop. However it causes it to be on top the select backdrop as well , which is not what i need. i would like to be able to set the z-index of the backdrops to create the wanted design without using solutions like !important Thanks you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
oliviertassinaricommented, Dec 1, 2020

@gicontz See https://material-ui.com/guides/interoperability/#portals for why it doesn’t work and how to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ability to customize backdrop of select and popover #16471
I have a select component inside a popover. Another component has a z-index: 1301 set by me so it will show over the...
Read more >
How to change the background color of MUI Menu Popover of ...
I want to achieve that the popover respectively the menu of a TextField with 'select' property changes the background color.
Read more >
Backdrop API - Material UI - MUI
Name Type Default open * bool false children node classes object
Read more >
Popovers - Presentation - Human Interface Guidelines - Design
A popover is a transient view that appears above other content onscreen when people click or tap a control or interactive area.
Read more >
Styling Popover Elements | Adobe Commerce
However, popover elements can be styled using CSS classes. For example, the following declarations change the background color of the popover ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found