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

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

Issue 2639373002: MD Settings: clean up text controls (links, buttons) (Closed)
Patch Set: move comment about action_link_css to action_likn_css.html Created 3 years, 11 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/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 be8dfb4111f0e1bc41c07004adaa558bd14725a8..677f48c9d939465183e7ff88bf18587f9e9bfd4c 100644
--- a/chrome/browser/resources/settings/printing_page/cups_printers.html
+++ b/chrome/browser/resources/settings/printing_page/cups_printers.html
@@ -1,3 +1,5 @@
+<link rel="import" href="chrome://resources/html/action_link.html">
+<link rel="import" href="chrome://resources/html/action_link_css.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="/printing_page/cups_add_printer_dialog.html">
<link rel="import" href="/printing_page/cups_printers_list.html">
@@ -5,17 +7,7 @@
<dom-module id="settings-cups-printers">
<template>
- <style include="settings-shared">
- a[is='action-link'] {
- display: inline-block;
- text-decoration: none;
- }
-
- a[is='action-link']:hover {
- color: blue;
- text-decoration: underline;
- }
-
+ <style include="settings-shared action-link">
.settings-box .start {
color: var(--paper-grey-500);
}
@@ -54,7 +46,7 @@
</style>
<div class="settings-box first">
- <a is="action-link" on-tap="onAddPrinterTap_" actionable
+ <a is="action-link" on-tap="onAddPrinterTap_"
hidden="[[!canAddPrinter_]]">
$i18n{addCupsPrinter}
</a>
@@ -79,7 +71,7 @@
</div>
<div class="center" id="addPrinterErrorMessage" hidden>
<span>$i18n{printerAddedFailedMessage}</span>
- <a is="action-link" on-tap="onAddPrinterTap_" actionable>
+ <a is="action-link" on-tap="onAddPrinterTap_">
$i18n{printerAddedTryAgainMessage}
</a>
</div>

Powered by Google App Engine
This is Rietveld 408576698