Skip to content

Commit fdf30f5

Browse files
committed
fix: add comments for css hack
1 parent 0fe1e92 commit fdf30f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/fiori/src/themes/ShellBarV2.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@
174174
}
175175

176176
:host([show-search-field]) ::slotted([slot="searchField"]),
177+
/* Search field displays in full mode if there's not enough space in bar.
178+
Once in full screen mode the search field is rendered in another DOM.
179+
To account for correct measurements in overflow, we should keep the min width
180+
of the search field container in the bar even when the search is in full mode. */
177181
:host([show-full-width-search]) .ui5-shellbar-search-field-area {
178182
min-width: var(--_ui5_shellbar_search_field_width);
179183
}

0 commit comments

Comments
 (0)