Skip to content

Commit b403339

Browse files
committed
Use disabled variant in search form
1 parent f452ebc commit b403339

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/stubs/presets/search/search_form.antlers.html.stub

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@
4646
name="q"
4747
/>
4848
<button
49-
class="absolute inset-y-0 right-0 mr-2 flex items-center text-neutral hover:text-primary"
49+
class="absolute inset-y-0 right-0 mr-2 flex items-center text-neutral hover:text-primary disabled:cursor-default disabled:opacity-25 motion-safe:transition-opacity"
5050
aria-label="{{ trans:strings.search }}"
5151
:disabled="value.length === 0"
52-
:class="{ 'opacity-25 cursor-default': value.length === 0, 'opacity-100': value.length > 0 }"
5352
>
5453
{{ svg:search attr:class="w-5 h-5 fill-current motion-safe:transition-colors" attr:alt="" attr:aria-hidden="true" }}
5554
</button>

0 commit comments

Comments
 (0)