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

Unified Diff: chrome/browser/resources/settings/printing_page/cups_printers.html

Issue 2867563002: [CUPS] Modify the "Add Printer" link to a button. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/printing_page/cups_printers.html
diff --git a/chrome/browser/resources/settings/printing_page/cups_printers.html b/chrome/browser/resources/settings/printing_page/cups_printers.html
index 83949a7796423c5d78a7b613713aa1e3ebdc893d..9a0f8bbb616126b2327a440b24079d28ec2ff52e 100644
--- a/chrome/browser/resources/settings/printing_page/cups_printers.html
+++ b/chrome/browser/resources/settings/printing_page/cups_printers.html
@@ -3,6 +3,7 @@
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="cups_add_printer_dialog.html">
<link rel="import" href="cups_printers_list.html">
<link rel="import" href="../settings_shared_css.html">
@@ -18,6 +19,15 @@
color: var(--paper-grey-800);
font-size: 92.31%; /* 12px / 13px */
}
+
+ paper-button {
michaelpg 2017/05/05 22:53:38 What does this do differently that it needs to loo
xdai1 2017/05/06 00:02:42 I didn't notice that there was pre-defined "primar
michaelpg 2017/05/06 01:21:50 try -webkit-margin-start: auto instead of margin-l
xdai1 2017/05/08 17:20:42 It worked, thanks a lot!
+ --paper-button-flat-keyboard-focus: {
+ font-weight: 500;
+ };
+ color: var(--google-blue-500);
+ font-weight: 500;
+ margin-left: auto;
+ }
#message {
display: flex;
@@ -48,15 +58,13 @@
</style>
<div class="settings-box first">
- <a id="addPrinter" is="action-link" on-tap="onAddPrinterTap_"
+ <paper-button id="addPrinter" on-tap="onAddPrinterTap_"
hidden="[[!canAddPrinter_]]">
$i18n{addCupsPrinter}
- </a>
+ </paper-button>
<div class="start" hidden="[[canAddPrinter_]]">
<span>$i18n{addCupsPrinter}</span>
- <div class="secondary">
- $i18n{requireNetworkMessage}
- </div>
+ <div class="secondary">$i18n{requireNetworkMessage}</div>
</div>
</div>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698