Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Possible to set iron-overlay-backdrop background-color for a single instance of paper-dialog? #136

Open
Mika83AC opened this issue Dec 16, 2016 · 1 comment

Comments

@Mika83AC
Copy link

Hey Polymer-Team,

i searched for a while now, but didn't found a solution.

Is it possible to set the desired iron-overlay-backdrop background-color for a single instance of a paper-dialog?

For example, i want to use one as a error message, and here the background should be read. In the next case, i want to use it as a success message, where the background should be green.

Using toasts is not an option in this case as i'm trying to build a general MessageBox element which can handle various states and can also act as a prompt.

Thx for your replies and your work!

@valdrinkoshi
Copy link
Member

Hi, you could create your own implementation of the IronOverlayBehavior like the shop-cart-modal does, and ensure you hide the backdropElement when the overlay is opened, and restore its display when the overlay is closed. See this example http://jsbin.com/qozifek/3/edit?html,output

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants