Commit 880a3c6f authored by Gavin Williams's avatar Gavin Williams Committed by Commit Bot

Use red font for printer status error messages

Only use red font when the currently selected destination is a local
Chrome OS printer since only local Chrome OS printers display status
errors.

Bug: 1059607
Change-Id: Ie0462f57f09b8651735bb6c9878946090198ddb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2274184
Commit-Queue: Gavin Williams <gavinwill@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#784232}
parent dc1446ed
<style include="print-preview-shared throbber md-select destination-select cr-hidden-style"> <style include="print-preview-shared throbber md-select destination-select cr-hidden-style">
:host([is-current-destination-cros-local]) #statusText {
color: var(--google-red-600);
padding: 0;
}
</style> </style>
<print-preview-settings-section> <print-preview-settings-section>
<span slot="title">$i18n{destinationLabel}</span> <span slot="title">$i18n{destinationLabel}</span>
...@@ -51,7 +57,9 @@ ...@@ -51,7 +57,9 @@
hidden$="[[!statusText_]]"> hidden$="[[!statusText_]]">
<div slot="title"></div> <div slot="title"></div>
<div slot="controls"> <div slot="controls">
<div class="destination-status">[[statusText_]]</div> <div id="statusText" class="destination-status" title="[[statusText_]]">
[[statusText_]]
</div>
</div> </div>
</print-preview-settings-section> </print-preview-settings-section>
<print-preview-settings-section class="destination-additional-info" <print-preview-settings-section class="destination-additional-info"
......
...@@ -126,6 +126,7 @@ Polymer({ ...@@ -126,6 +126,7 @@ Polymer({
isCurrentDestinationCrosLocal_: { isCurrentDestinationCrosLocal_: {
type: Boolean, type: Boolean,
computed: 'computeIsCurrentDestinationCrosLocal_(destination)', computed: 'computeIsCurrentDestinationCrosLocal_(destination)',
reflectToAttribute: true,
}, },
}, },
......
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