Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
polymer-ui-overlay: don't style <content>, fix backdrop when
Browse files Browse the repository at this point in the history
transitioning
  • Loading branch information
Yvonne Yip committed Nov 6, 2013
1 parent 48194a7 commit e831ea6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions polymer-ui-overlay/polymer-ui-overlay.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@
bottom: 0;
right: 0;
z-index: -1;
visibility: hidden;
}
#container {
background: white;
:host(.polymer-overlay.opened:not(.animating)) #backdrop {
visibility: visible;
}
</style>
<polymer-overlay id="overlay" opened="{{active}}" autoCloseDisabled="{{modal}}" transitions="{{transitions}}"></polymer-overlay>
<div id="backdrop" hidden?="{{!backdrop}}" pseudo="x-backdrop" on-click="{{toggle: !modal}}"></div>
<div id="container" pseudo="x-overlay">
<content></content>
</div>
<div id="backdrop" hidden?="{{!backdrop}}" on-click="{{toggle: !modal}}"></div>
<content></content>
</template>
<script>
Polymer('polymer-ui-overlay', {
Expand Down

0 comments on commit e831ea6

Please sign in to comment.