Commit 5c31d542 authored by Gavin Williams's avatar Gavin Williams Committed by Commit Bot

Add highlighted color state to printer status icon

The blue highlighted state ensures the color of the printer status icon
background-badge always matches the background of the dropdown item.

http://screen/JxUqAa8Uhai

Bug: 1059607
Change-Id: I93e665f6cc3a12f8976f9135c7be3b210f9d0224
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2301124
Commit-Queue: Gavin Williams <gavinwill@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789835}
parent 543cd8bb
...@@ -127,7 +127,8 @@ ...@@ -127,7 +127,8 @@
highlightedIndex_)]]"> highlightedIndex_)]]">
<printer-status-icon-cros icon-location="[[IconLocation.DROPDOWN]]" <printer-status-icon-cros icon-location="[[IconLocation.DROPDOWN]]"
printer-state="[[computePrinterState_( printer-state="[[computePrinterState_(
item.printerStatusReason)]]"> item.printerStatusReason)]]"
class$="[[getHighlightedClass_(item.key, highlightedIndex_)]]">
</printer-status-icon-cros> </printer-status-icon-cros>
<span class="printer-display-name">[[item.displayName]]</span> <span class="printer-display-name">[[item.displayName]]</span>
</button> </button>
......
...@@ -59,6 +59,10 @@ ...@@ -59,6 +59,10 @@
:host-context([dir='rtl']) #background-badge { :host-context([dir='rtl']) #background-badge {
right: var(--background-badge-left); right: var(--background-badge-left);
} }
:host-context(.highlighted) #background-badge {
background-color: var(--google-blue-refresh-100);
}
</style> </style>
<div> <div>
<iron-icon icon="print-preview:print"></iron-icon> <iron-icon icon="print-preview:print"></iron-icon>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment