Chromium Code Reviews
DescriptionMD Settings: Fix label visibility in subpage search fields
In crrev.com/438430, CrSearchFieldBehavior was simplified, removing
compatibility with iron-input. However, iron-input was still used by
<settings-subpage-search> to control the visibility of the input field
label.
This CL adds a public 'hasSearchText' property to the common search
field behavior which does not require iron-input to compute. This allows
<settings-subpage-search> to remove its dependency on iron-input, while
also fixing two minor issues:
- The input field label on <settings-subpage-search> now reappears when
the 'clear search' button is clicked.
- The search icon in <cr-toolbar-search-field> now appears unfocused
when the search field is cleared while it is unfocused.
BUG=665700, 665307, 634665
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2586803002
Cr-Commit-Position: refs/heads/master@{#444578}
Committed: https://chromium.googlesource.com/chromium/src/+/d69fa965ea7ddc2e61c7701a6b209c1d5f8bccda
Patch Set 1 #Patch Set 2 : Different approach #
Total comments: 2
Patch Set 3 : Rebase #Patch Set 4 : Fix focus bug while we're at it #Patch Set 5 : Rebase #Messages
Total messages: 40 (30 generated)
|