Material-ui: [Overlay] Expose this internal component

Created on 25 Jul 2016  路  4Comments  路  Source: mui-org/material-ui

Hi,
I would be nice to have a boolean property to show/hide an overlay with the popover.

enhancement

Most helpful comment

We do have an overlay component. I don't think that we should be backing it into the Popover. Still we could potentially move it out of the internal folder and document it.

All 4 comments

We're looking at using the Overlay component with a custom Search component overlaid on it

To accomplish we're importing material-ui/internal/Overlay which works well but feels fragile with the "internal" nesting of the Overlay.

Given the various use cases, it might make sense to make Overlay a public component?

We do have an overlay component. I don't think that we should be backing it into the Popover. Still we could potentially move it out of the internal folder and document it.

As far as I can see there is a backdrop with the Popover with alpha 1, it would be good to be able to control that as, in some cases, makes sense to let the user know any other interaction is disabled.

i.e. I have a colour palette with swatches that show edit/delete actions on hover and, when clicking edit, a Popover with a colour picker shows right beneath. At this point, as there is no visual clue that the Popover is a blocking action, users reported that hovering over other swatches doesn't work.

The Popover inherits the properties of the Modal component. You can already provide a BackdropInvisible, BackdropClassName and BackdropComponent property. I will work on exposing the Modal component to the public API so the feature is better documented.

The issue can be closed. Here is a demo: https://codesandbox.io/s/322l1n9ym6.
capture d ecran 2017-11-07 a 21 06 28

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ryanflorence picture ryanflorence  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments

iamzhouyi picture iamzhouyi  路  3Comments

reflog picture reflog  路  3Comments