Commit b8b8fd1e authored by rbpotter's avatar rbpotter Committed by Commit Bot

Print Preview: Add a title for the clear search button

Fixed: 1060620
Change-Id: I5a2ba1bf079154436cab53fa3c3765b6948001ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2317779Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791339}
parent 28ca5ae1
......@@ -53,6 +53,6 @@
<div slot="inline-prefix" id="icon" class="cr-icon icon-search" alt=""></div>
<cr-icon-button id="clearSearch" class="icon-cancel"
hidden$="[[!hasSearchText]]" slot="suffix" on-click="onClearClick_"
title="[[clearLabel]]">
title="$i18n{clearSearch}">
</cr-icon-button>
</cr-input>
......@@ -220,6 +220,8 @@ void AddPrintPreviewStrings(content::WebUIDataSource* source) {
IDS_PRINT_PREVIEW_ADVANCED_SETTINGS_SEARCH_BOX_PLACEHOLDER},
{"bottom", IDS_PRINT_PREVIEW_BOTTOM_MARGIN_LABEL},
{"cancel", IDS_CANCEL},
// TODO(dpapad): Use a single merged string resource for "Clear search".
{"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH},
{"cloudPrintPromotion", IDS_PRINT_PREVIEW_CLOUD_PRINT_PROMOTION},
{"copiesInstruction", IDS_PRINT_PREVIEW_COPIES_INSTRUCTION},
{"copiesLabel", IDS_PRINT_PREVIEW_COPIES_LABEL},
......
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