Skip to content

Commit

Permalink
Merge pull request #995 from geoadmin/bug-search-bar-role
Browse files Browse the repository at this point in the history
Avoid wrong interpretation of search bar by browser extension (e.g. 1Password) - #patch
  • Loading branch information
ltshb authored Jul 8, 2024
2 parents e9f1f3d + 820af83 commit 5a6acec
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/modules/menu/components/search/SearchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,17 @@ const onInputClicked = () => {
</span>
<input
ref="searchInput"
type="text"
type="search"
class="form-control text-truncate"
:class="{
'rounded-bottom-0': showResults,
'rounded-start': isPhoneMode,
'rounded-end': !searchValue,
}"
:placeholder="$t('search_placeholder')"
autocapitalize="off"
autocorrect="off"
spellcheck="false"
aria-label="Search"
aria-describedby="searchIconText clearSearchButton"
:value="searchValue"
Expand Down Expand Up @@ -190,4 +193,11 @@ const onInputClicked = () => {
<style lang="scss" scoped>
@import '@/scss/media-query.mixin';
// Prevent clear icon of search input on certain browser like chrome, the clear icon is added
// manually using bootstrap see template above.
input[type='search']::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
}
</style>

0 comments on commit 5a6acec

Please sign in to comment.