Skip to content

Commit da3cb54

Browse files
committed
feat: search input add clear icon
1 parent 2df63c6 commit da3cb54

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/pages/search.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ defineOgImageComponent('Default', {
377377
/>
378378
<!-- Hidden submit button for accessibility (form must have submit button per WCAG) -->
379379
<button type="submit" class="sr-only">Search</button>
380+
<span
381+
v-show="inputValue"
382+
@click="inputValue = ''"
383+
class="i-solar-close-circle-linear w-3.5 h-3.5 cursor-pointer -ml-5"
384+
/>
380385
</div>
381386
</div>
382387
</form>

0 commit comments

Comments
 (0)