collection search tooltiptext and placeholder cleanup (#3632)

Fluent tooltiptext for collection search button and placeholder
for collection search input
This commit is contained in:
abaevbog 2024-02-02 03:58:27 -05:00 committed by GitHub
parent 4a3a80b4f8
commit a74c86d948
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 4 deletions

View file

@ -1024,11 +1024,11 @@
<toolbarbutton id="zotero-tb-collection-add" tabindex="-1" class="zotero-tb-button" tooltiptext="&zotero.toolbar.newCollection.label;" command="cmd_zotero_newCollection"/>
<spacer flex="1"></spacer>
<html:div style="display: flex;flex-direction: row;">
<toolbarbutton id="zotero-tb-collections-search" tabindex="-1" class="zotero-tb-button" tooltiptext="&zotero.toolbar.newCollection.label;"/>
<!-- For unknown reason, the data-l10n-id.placeholder doesn't work here. Hard code it for now -->
<toolbarbutton id="zotero-tb-collections-search" data-l10n-id="zotero-collections-search-btn" tabindex="-1" class="zotero-tb-button"/>
<search-textbox
id="zotero-collections-search" class="hidden" disabled="true"
placeholder="Filter Collections" data-l10n-id="zotero-collections-search"
data-l10n-id="zotero-collections-search"
data-l10n-attrs="placeholder"
oncommand="ZoteroPane.handleCollectionSearchInput()"/>
</html:div>
</hbox>

View file

@ -34,8 +34,11 @@ menu-new-item-note =
zotero-toolbar-tabs-menu =
.tooltiptext = List all tabs
filter-collections = Filter Collections
zotero-collections-search =
.placeholder = Filter Collections
.placeholder = { filter-collections }
zotero-collections-search-btn =
.tooltiptext = { filter-collections }
zotero-tabs-menu-filter =
.placeholder = Search Tabs
zotero-tabs-menu-close-button =