Skip to content

Commit 3230735

Browse files
pedropintosilvaeszkadev
authored andcommitted
TreeView: SearchBox: Add missing styles
This was affecting any place were the searchbox was appearing: - Sheetview dialog - Autofilter popup where the searchbox was looking very retro (bevels) Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: Id2f4f1c347dda99f858c617212ba2c7274f2b704
1 parent 3e42fd8 commit 3230735

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

browser/css/jsdialogs.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,11 @@ img.context-menu-icon {
10151015
padding-inline: 4px;
10161016
}
10171017

1018-
#search_edit.ui-edit.autofilter {
1018+
.ui-treeview-search-input.jsdialog.ui-edit {
1019+
line-height: var(--default-height);
1020+
}
1021+
.autofilter .ui-treeview-search-input.jsdialog.ui-edit,
1022+
.autofilter .ui-treeview-search-input.jsdialog.ui-edit:hover {
10191023
width: 100%;
10201024
width: -moz-available;
10211025
width: -webkit-fill-available;

browser/src/control/jsdialog/Widget.TreeView.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,10 @@ class TreeViewControl {
16301630
const searchBox = document.createElement('input');
16311631
searchBox.id = JSDialog.MakeIdUnique('ui-treeview-search-input'); // Form fields should have either a name or an ID - using this instead of a class
16321632
searchBox.type = 'search';
1633+
searchBox.setAttribute(
1634+
'class',
1635+
'jsdialog ui-edit ui-treeview-search-input',
1636+
);
16331637
searchBox.setAttribute('aria-label', _('Search items'));
16341638
searchBox.setAttribute('aria-controls', this._container.id);
16351639
searchBox.placeholder = _('Search...');

0 commit comments

Comments
 (0)