Skip to content

Commit 2beec5f

Browse files
committed
refactor(BaseSearchInput): hide webkit search cancel button globally
1 parent f8e62b0 commit 2beec5f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

frontend/layers/base/app/assets/css/main.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@
140140
}
141141
}
142142

143+
@layer reset {
144+
input::-webkit-search-cancel-button {
145+
display: none;
146+
}
147+
}
148+
143149
html {
144150
transition-behavior: allow-discrete;
145151
interpolate-size: allow-keywords;

frontend/layers/base/app/components/BaseSearchInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const handleClickOutside = (e: PointerDownOutsideEvent) => {
8484
type="search"
8585
:aria-busy="isLoading"
8686
:placeholder
87-
class="search-input w-full text-2xl font-semibold rounded-3xl pt-3xl pr-5xl pb-6xl pl-2xl dark:bg-gray-950
87+
class="w-full text-2xl font-semibold rounded-3xl pt-3xl pr-5xl pb-6xl pl-2xl dark:bg-gray-950
8888
bg-white dark:focus:bg-black placeholder:dark:text-gray-500 dark:text-white border border-gray-500 dark:border-charcoal-500
8989
dark:focus:border-charcoal-50 dark:focus-within:outline-0"
9090
@update:model-value="(value) => { if (!value) hasSearched = false }"

0 commit comments

Comments
 (0)