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-action-dialog` is a `paper-dialog` a row of buttons at the bottom that
15 indicate user action. The action buttons do not scroll with the dialog body.
17 The buttons should have either the `affirmative` or `dismissive` attribute. See
18 the Material Design spec for more info.
22 <paper-action-dialog heading="Dialog Title">
24 <paper-button dismissive>More Info</paper-button>
25 <paper-button affirmative>Decline</paper-button>
26 <paper-button affirmative>Accept</paper-button>
27 </paper-action-dialog>
30 @element paper-action-dialog
31 @extends paper-dialog-base
35 <link href=
"../polymer/polymer.html" rel=
"import">
36 <link href=
"../paper-shadow/paper-shadow.html" rel=
"import">
38 <link href=
"paper-dialog-base.html" rel=
"import">
40 <polymer-element name=
"paper-action-dialog" extends=
"paper-dialog-base" role=
"dialog" layout vertical
>
47 color: rgba(
0,
0,
0,
0.87);
49 overflow: visible !important;
58 box-sizing: border-box;
59 padding:
24px
24px
0 24px;
67 <paper-shadow z=
"3" fit
></paper-shadow>
69 <!-- need this because the host needs to be overflow: visible -->
70 <div id=
"scroller" relative flex auto
>
71 <template if=
"{{heading}}">
75 <content select=
":not([affirmative]):not([dismissive])"></content>
78 <div id=
"actions" relative layout horizontal
>
79 <content select=
"[dismissive]"></content>
81 <content select=
"[affirmative]"></content>
93 * @attribute closeSelector
95 * @default '[affirmative],[dismissive]'
97 closeSelector
: '[affirmative],[dismissive]'