mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
navbar: Update searchbox event listeners behaviour.
These are some UI and UX changes mainly related for when to display the search pills and when to dispay the narrow description in the search bar.
This commit is contained in:
@@ -177,9 +177,11 @@ exports.initialize = function () {
|
||||
// while we want to add box-shadow to `#searchbox`. This could have been done
|
||||
// with `:focus-within` CSS selector, but it is not supported in IE or Opera.
|
||||
searchbox.on('focusin', function () {
|
||||
tab_bar.open_search_bar_and_close_narrow_description();
|
||||
searchbox.css({"box-shadow": "inset 0px 0px 0px 2px hsl(204, 20%, 74%)"});
|
||||
});
|
||||
searchbox.on('focusout', function () {
|
||||
tab_bar.close_search_bar_and_open_narrow_description();
|
||||
searchbox.css({"box-shadow": "unset"});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user