Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3840)

Unified Diff: chrome/browser/resources/chromeos/login/oobe_buttons.html

Issue 2398383002: ChromeOS: Update Welcome screen material design OOBE. (Closed)
Patch Set: Update after review. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/login/oobe_buttons.html
diff --git a/chrome/browser/resources/chromeos/login/oobe_buttons.html b/chrome/browser/resources/chromeos/login/oobe_buttons.html
index 2a62637ab4a25ffdfa6ef9042863b09da90b3b96..011900c3eca49be532b86a03ab8cb8e8529c0587 100644
--- a/chrome/browser/resources/chromeos/login/oobe_buttons.html
+++ b/chrome/browser/resources/chromeos/login/oobe_buttons.html
@@ -5,55 +5,51 @@
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-fab/paper-fab.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html">
<!--
- Material design button that shows an icon.
+ Material design square button for text-labelled buttons.
+ By default, text is blue, background is white.
+ |inverse| makes text white on a blue background.
Example:
- <oobe-icon-button icon="close"></oobe-icon-button>
+ <oobe-icon-button i18n-content="oobeOKButtonText" inverse>
+ </oobe-icon-button>
+ <oobe-icon-button i18n-content="oobeCancelButtonText"></oobe-icon-button>
Attributes:
- 'icon' - a name of icon from material design set to show on button.
'disabled' - button is disabled when the attribute is set.
- 'aria-label' - accessibility label.
+ 'inverse' - makes text white and background blue
-->
-<dom-module id="oobe-icon-button">
- <link rel="stylesheet" href="oobe_icon_button.css">
+<dom-module id="oobe-text-button">
+ <link rel="stylesheet" href="oobe_text_button.css">
<template>
- <div on-click="onClick_" on-tap="onClick_">
- <paper-icon-button id="iconButton" icon="[[icon]]" disabled="[[disabled]]"
- aria-label="[[ariaLabel]]">
- </paper-icon-button>
- </div>
+ <paper-button id="textButton" on-tap="onClick_" disabled="[[disabled]]"
+ inverse$="[[inverse]]">
+ <content></content>
+ </paper-button>
</template>
</dom-module>
<!--
- Material design square button for text-labelled buttons.
- By default, text is blue, background is white.
- |inverse| makes text white on a blue background.
+ Material design button that shows an icon and displays text.
Example:
- <oobe-icon-button label="OK" inverse></oobe-icon-button>
- <oobe-icon-button label="CANCEL"></oobe-icon-button>
+ <oobe-welcome-secondary-button icon="close"
+ i18n-content="oobeCloseButtonText">
+ </oobe-icon-button>
Attributes:
- 'label' - text on a button
- 'disabled' - button is disabled when the attribute is set.
- 'inverse' - makes text white and background blue
+ 'icon' - a name of icon from material design set to show on button.
+ 'aria-label' - accessibility label.
-->
-<dom-module id="oobe-text-button">
- <link rel="stylesheet" href="oobe_text_button.css">
+<dom-module id="oobe-welcome-secondary-button">
+ <link rel="stylesheet" href="oobe_welcome_secondary_button.css">
<template>
- <div on-click="onClick_" on-tap="onClick_">
- <paper-button id="textButton" disabled="[[disabled]]"
- inverse$="[[inverse]]">
- [[label]]
- <content></content>
- </paper-button>
- </div>
+ <paper-button id="container" class="layout horizontal center"
+ aria-label="[[ariaLabel]]">
+ <iron-icon icon="[[icon]]" class="oobe-icon"></iron-icon>
+ <content></content>
+ </paper-button>
</template>
</dom-module>
-

Powered by Google App Engine
This is Rietveld 408576698