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>core-focusable
</title>
16 <script src=
"../webcomponentsjs/webcomponents.js"></script>
18 <link href=
"core-focusable.html" rel=
"import">
20 <style shim-shadowdom
>
22 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
26 -webkit-tap-highlight-color: rgba(
0,
0,
0,
0);
27 -webkit-touch-callout: none;
40 display: inline-block;
46 focusable-button[disabled] {
50 focusable-button[active] {
55 focusable-button[pressed] {
60 focusable-button[focused] {
61 border:
1px solid #
4fc3f7;
68 <polymer-element name=
"focusable-button" tabindex=
"0">
78 downAction: function() {
79 // call overriden event delegate
84 upAction: function() {
85 // call overriden event delegate
92 Polymer
.mixin2(p
, Polymer
.CoreFocusable
);
100 <focusable-button>button
</focusable-button>
102 <focusable-button toggle
>toggle
</focusable-button>
104 <focusable-button disabled
>disabled
</focusable-button>