Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 1 <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-fab/paper-fab.htm l"> | |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> | 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | |
| 10 | 10 |
| 11 <!-- | 11 <!-- |
| 12 Material design buttons that mimic GAIA's buttons. | 12 Material design buttons for OOBE screens. |
|
jdufault
2016/05/20 18:27:27
What about something like:
Material design button
Alexander Alekseev
2016/05/24 00:38:45
Done.
| |
| 13 | |
| 14 Attributes: | |
| 15 'disabled' - button is disabled when the attribute is set. | |
| 13 | 16 |
| 14 Example: | 17 Example: |
| 15 <gaia-button type="dialog"></gaia-button> | 18 <oobe-button type="dialog"></oobe-button> |
|
jdufault
2016/05/20 18:27:27
Rename to oobe-next-button, remove unused type pro
Alexander Alekseev
2016/05/24 00:38:45
Done.
| |
| 16 | |
| 17 Attributes: | |
| 18 'type' - there are three kinds of button: regular blue button (none type | |
| 19 provided), dialog button (type="dialog") and a button that looks | |
| 20 more like a link (type="link"). | |
| 21 'disabled' - button is disabled when the attribute is set. | |
| 22 --> | 19 --> |
| 23 <dom-module id="gaia-button"> | 20 <dom-module id="oobe-button-next"> |
|
jdufault
2016/05/20 18:27:27
Rename to oobe-next-button to be consistent with o
Alexander Alekseev
2016/05/24 00:38:45
Done.
| |
| 24 <link rel="stylesheet" href="gaia_button.css"> | 21 <style> |
|
jdufault
2016/05/20 18:27:27
Make sure to delete this file in the patch.
Alexander Alekseev
2016/05/24 00:38:45
gaia_button.css is still used in gaia_buttons.html
| |
| 22 :host { | |
| 23 display: inline-block; | |
| 24 } | |
| 25 paper-fab { | |
| 26 background-color: var(--google-blue-500); | |
| 27 color: white; | |
| 28 font-size: 14px; | |
| 29 } | |
| 30 </style> | |
| 25 | 31 |
| 26 <template> | 32 <template> |
| 27 <div on-click="onClick_" on-tap="onClick_"> | 33 <paper-fab icon="arrow-forward" disabled="[[disabled]]"></paper-fab> |
| 28 <paper-button id="button" disabled="[[disabled]]" | |
| 29 on-focused-changed="focusedChanged_"> | |
| 30 <content></content> | |
| 31 </paper-button> | |
| 32 </div> | |
| 33 </template> | 34 </template> |
| 34 </dom-module> | 35 </dom-module> |
| 35 | 36 |
| 36 <!-- | 37 <!-- |
| 37 Material desing icon button with a special styling. | 38 Material desing icon button with a special styling. |
|
jdufault
2016/05/20 18:27:27
What about:
Material design button that shows a
Alexander Alekseev
2016/05/24 00:38:45
Done.
| |
| 38 | 39 |
| 39 Example: | 40 Example: |
| 40 <gaia-icon-button icon="close"></gaia-icon> | 41 <oobe-icon-button icon="close"></oobe-icon> |
| 41 | 42 |
| 42 Attributes: | 43 Attributes: |
| 43 'icon' - a name of icon from material design set to show on button. | 44 'icon' - a name of icon from material design set to show on button. |
| 44 'disabled' - button is disabled when the attribute is set. | 45 'disabled' - button is disabled when the attribute is set. |
| 45 'aria-label' - accessibility label. | 46 'aria-label' - accessibility label. |
| 46 --> | 47 --> |
| 47 <dom-module id="gaia-icon-button"> | 48 <dom-module id="oobe-icon-button"> |
| 48 <link rel="stylesheet" href="gaia_icon_button.css"> | 49 <style> |
|
jdufault
2016/05/20 18:27:27
Make sure to delete this file in the patch.
Alexander Alekseev
2016/05/24 00:38:45
gaia_icon_button.css is still used in gaia_buttons
jdufault
2016/05/24 17:18:37
Is gaia_buttons.html going to go away? Otherwise t
Alexander Alekseev
2016/05/24 18:28:09
I believe Gaia has its own design, which doesn't d
| |
| 50 #iconButton { | |
| 51 height: 24px; | |
| 52 padding: 0; | |
| 53 width: 24px; | |
| 54 } | |
| 55 </style> | |
| 49 | 56 |
| 50 <template> | 57 <template> |
| 51 <div on-click="onClick_" on-tap="onClick_"> | 58 <div on-click="onClick_" on-tap="onClick_"> |
| 52 <paper-icon-button id="iconButton" icon="[[icon]]" disabled="[[disabled]]" | 59 <paper-icon-button id="iconButton" icon="[[icon]]" disabled="[[disabled]]" |
| 53 aria-label="[[ariaLabel]]"> | 60 aria-label="[[ariaLabel]]"> |
| 54 </paper-icon-button> | 61 </paper-icon-button> |
| 55 </div> | 62 </div> |
| 56 </template> | 63 </template> |
| 57 </dom-module> | 64 </dom-module> |
| 58 | 65 |
| OLD | NEW |