Skip to content

Commit

Permalink
refactor: hide shortcut tips for search if not empty (#1939)
Browse files Browse the repository at this point in the history
* fix: search not empty to hide icon

* feat: css

* feat: css
  • Loading branch information
crazyair authored Dec 26, 2023
1 parent 0fa9f9c commit 1865b01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/theme-default/slots/SearchBar/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@
background-color: @c-site-bg-dark;
box-shadow: 0 0 0 3px fade(@c-primary-dark, 10%);
}
}

&:focus,
&:not(:placeholder-shown) {
~ .@{prefix}-search-shortcut {
opacity: 0;
}
Expand Down

0 comments on commit 1865b01

Please sign in to comment.