You can use the "backdrop" property to achieve this effect. "backdrop" puts
an element behind the dialog that fits to the viewport so you cannot
interact with anything behind it. Example:

<paper-dialog backdrop autoCloseDisabled>
   Tap the button to dismiss!
   <paper-button core-overlay-toggle>OK</paper-button>
</paper-dialog>

Or, using paper-action-dialog:

<paper-action-dialog backdrop autoCloseDisabled>
   Tap the button to dismiss!
   <paper-button affirmative>OK</paper-button>
</paper-action-dialog>

You can style the backdrop using the "html /deep/ .core-overlay-backdrop"
selector. Example:

html /deep/ .core-overlay-backdrop {
  /* transparent backdrop */
  background-color: transparent;
}


On Tue, Nov 11, 2014 at 8:46 AM, Will Hopkins <[email protected]>
wrote:

> I just tried specifying 'autoCloseDisabled' on a dialog with the latest
> build of the master branch and it does stop the dialog from being dismissed
> when clicking on the background. It does not disable any of the background
> so items such as input fields and buttons remain active. If you want these
> disabled then you need to do this in you code.
>
> It would be nice have to have a option so that the dialog behaves more
> like an alert and no interaction with the web page is allowed until the
> user deals with the dialog.
>
> On Thursday, July 3, 2014 1:06:49 AM UTC-7, Anders Forsell wrote:
>>
>> Great, thanks!
>
>  Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/581bb79d-2c92-441e-9fab-50143f670ab4%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/581bb79d-2c92-441e-9fab-50143f670ab4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CAHk1xZJ9jNn4DAG12%2B%2B_Xvz%2BsfcDFK5yYkPf%2BMkjoVpuV_%2BY_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to