| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 @license | 2 @license |
| 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
| 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE |
| 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS |
| 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS |
| 7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
| 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS |
| 9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
| 10 <link rel="import" href="../iron-icon/iron-icon.html"> | 10 <link rel="import" href="../iron-icon/iron-icon.html"> |
| 11 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> | 11 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> |
| 12 <link rel="import" href="../paper-styles/default-theme.html"> | 12 <link rel="import" href="../paper-styles/default-theme.html"> |
| 13 <link rel="import" href="../paper-behaviors/paper-button-behavior.html"> | 13 <link rel="import" href="../paper-behaviors/paper-button-behavior.html"> |
| 14 <link rel="import" href="../paper-behaviors/paper-radio-button-behavior.html"> | 14 <link rel="import" href="../paper-behaviors/paper-inky-focus-behavior.html"> |
| 15 <link rel="import" href="../paper-ripple/paper-ripple.html"> | 15 <link rel="import" href="../paper-ripple/paper-ripple.html"> |
| 16 | 16 |
| 17 <style is="custom-style"> | |
| 18 :root { | |
| 19 --paper-icon-button-disabled-text: var(--disabled-text-color); | |
| 20 } | |
| 21 </style> | |
| 22 | |
| 23 <!-- | 17 <!-- |
| 24 Material Design: <a href="http://www.google.com/design/spec/components/buttons.h
tml">Buttons</a> | 18 Material Design: <a href="http://www.google.com/design/spec/components/buttons.h
tml">Buttons</a> |
| 25 | 19 |
| 26 `paper-icon-button` is a button with an image placed at the center. When the use
r touches | 20 `paper-icon-button` is a button with an image placed at the center. When the use
r touches |
| 27 the button, a ripple effect emanates from the center of the button. | 21 the button, a ripple effect emanates from the center of the button. |
| 28 | 22 |
| 29 `paper-icon-button` includes a default icon set. Use `icon` to specify which ic
on | 23 `paper-icon-button` includes a default icon set. Use `icon` to specify which ic
on |
| 30 from the icon set to use. | 24 from the icon set to use. |
| 31 | 25 |
| 32 <paper-icon-button icon="menu"></paper-icon-button> | 26 <paper-icon-button icon="menu"></paper-icon-button> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 84 |
| 91 @apply(--paper-icon-button); | 85 @apply(--paper-icon-button); |
| 92 } | 86 } |
| 93 | 87 |
| 94 :host #ink { | 88 :host #ink { |
| 95 color: var(--paper-icon-button-ink-color, --primary-text-color); | 89 color: var(--paper-icon-button-ink-color, --primary-text-color); |
| 96 opacity: 0.6; | 90 opacity: 0.6; |
| 97 } | 91 } |
| 98 | 92 |
| 99 :host([disabled]) { | 93 :host([disabled]) { |
| 100 color: var(--paper-icon-button-disabled-text, #fff); | 94 color: var(--paper-icon-button-disabled-text, --disabled-text-color); |
| 101 pointer-events: none; | 95 pointer-events: none; |
| 102 cursor: auto; | 96 cursor: auto; |
| 103 @apply(--paper-icon-button-disabled); | 97 @apply(--paper-icon-button-disabled); |
| 104 } | 98 } |
| 105 </style> | 99 </style> |
| 106 <template> | 100 <template> |
| 107 <paper-ripple id="ink" class="circle" center=""></paper-ripple> | 101 <paper-ripple id="ink" class="circle" center=""></paper-ripple> |
| 108 <iron-icon id="icon" src="[[src]]" icon="[[icon]]"></iron-icon> | 102 <iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]"></iron-ico
n> |
| 109 </template> | 103 </template> |
| 110 </dom-module> | 104 </dom-module> |
| 111 <script src="paper-icon-button-extracted.js"></script></body></html> | 105 <script src="paper-icon-button-extracted.js"></script></body></html> |
| OLD | NEW |