3 Copyright 2013 The Polymer Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file.
10 <meta charset=
"utf-8">
11 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge,chrome=1">
12 <meta name=
"viewport" content=
"width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
14 <title>paper-button
</title>
16 <script src=
"../webcomponentsjs/webcomponents.js"></script>
18 <link href=
"../font-roboto/roboto.html" rel=
"import">
19 <link href=
"../core-icon/core-icon.html" rel=
"import">
20 <link href=
"../core-icons/core-icons.html" rel=
"import">
21 <link href=
"paper-button.html" rel=
"import">
23 <style shim-shadowdom
>
25 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
29 -webkit-tap-highlight-color: rgba(
0,
0,
0,
0);
30 -webkit-touch-callout: none;
42 paper-button.colored {
46 paper-button[raised].colored {
51 paper-button.custom
> core-icon {
55 paper-button.hover:hover {
59 paper-button.blue-ripple::shadow #ripple {
65 <body unresolved
onclick=
"clickAction(event);">
69 <div>Flat buttons
</div>
71 <paper-button>button
</paper-button>
72 <paper-button class=
"colored">colored
</paper-button>
73 <paper-button disabled
>disabled
</paper-button>
74 <paper-button noink
>noink
</paper-button>
82 <div>Raised buttons
</div>
84 <paper-button raised
>button
</paper-button>
85 <paper-button raised
class=
"colored">colored
</paper-button>
86 <paper-button raised disabled
>disabled
</paper-button>
87 <paper-button raised noink
>noink
</paper-button>
93 <div>Custom button content
</div>
95 <paper-button class=
"colored custom">
96 <core-icon icon=
"check"></core-icon>
99 <paper-button class=
"custom">
100 <core-icon icon=
"clear"></core-icon>
105 <a href=
"https://www.polymer-project.org" target=
"_blank">link
</a>
112 <div>Styling options
</div>
114 <paper-button class=
"hover">hover
</paper-button>
115 <paper-button class=
"blue-ripple">custom ripple
</paper-button>
121 function clickAction(e
) {
123 if (t
.localName
=== 'paper-button') {
124 if (t
.hasAttribute('disabled')) {
125 console
.error('should not be able to click disabled button', t
);
127 console
.log('click', t
);