2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
12 Material Design: <a href="http://www.google.com/design/spec/components/dialogs.html">Dialogs</a>
14 `paper-dialog` is an overlay with a drop shadow.
18 <paper-dialog heading="Dialog Title">
25 Because a `paper-dialog` is `layered` by default, you need to use the `/deep/`
26 combinator to style all instances of the `paper-dialog`. Style the position,
27 colors and other inherited properties of the dialog using the
28 `html /deep/ paper-dialog` selector. Use the `html /deep/ paper-dialog::shadow #scroller` selector to size the dialog. Note that if you provided actions, the height
29 of the actions will be added to the height of the dialog.
31 html /deep/ paper-dialog {
35 html /deep/ paper-dialog::shadow #scroller {
43 You can use transitions provided by `core-transition` with this element.
45 <paper-dialog transition="core-transition-center">
52 By default, the `aria-label` will be set to the value of the `heading` attribute.
56 @extends paper-dialog-base
60 <link href=
"../polymer/polymer.html" rel=
"import">
61 <link href=
"../paper-shadow/paper-shadow.html" rel=
"import">
63 <link href=
"paper-dialog-base.html" rel=
"import">
65 <polymer-element name=
"paper-dialog" extends=
"paper-dialog-base" role=
"dialog" layout vertical noscript
>
72 color: rgba(
0,
0,
0,
0.87);
74 overflow: visible !important;
83 box-sizing: border-box;
88 <paper-shadow z=
"3" fit
></paper-shadow>
90 <!-- need this because the host needs to be overflow: visible -->
91 <div id=
"scroller" relative flex auto
>
92 <template if=
"{{heading}}">