ah, just answering myself here for posterity: If you set layered="false", you won't lose access to the light DOM's css class selectors and so forth. Your dialog won't be guaranteed to render on top of all other dialogs and other page content, but provided you're not going nuts with z-indexes, you are safe. Beats having to write /deep/ (or is it ::shadow or >>> ) selectors for the stuff I want to shove into a dialog.
e On Thu, Apr 23, 2015 at 4:33 PM Eric Eslinger <[email protected]> wrote: > Hey polymer-peeps. > > I have a problem with getting styles to attach to content in a > paper-dialog. In particular, I want to do stuff like: > > <paper-dialog> > <div class="potato">stuff</div> > </paper-dialog> > > The problem is that unlike pretty much every other paper element that does > projection (core-header-panel, core-drawer-panel, etc), the stuff that is > selected to go inside the paper dialog's presentation is deep in some > shadow dom and doesn't inherit class attributes from the light dom. > > Is there some simple-overlook issue I'm missing here? Everything else was > a bit tricky, but not an issue really, but I just can't get paper-dialogs > to grab classes from outside. Between that and the strange tendency for > core-overlay to stick around sometimes when closing a paper-dialog, I'm > basically stuck with my own hand-rolled dialog popups for the time being. > > e > 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/CABsi40L-NLj_S4afzyvm-uYiHa4R3mw7_%3D6YumF1U2364fJjEQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
