We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9544064 commit b1fceaeCopy full SHA for b1fceae
.changeset/purple-timers-cry.md
@@ -0,0 +1,5 @@
1
+---
2
+'@theguild/components': patch
3
4
+
5
+Hide clear button when marketplace input is empty'
packages/components/src/components/marketplace-search.tsx
@@ -151,7 +151,8 @@ function MarketplaceSearchInput({
151
onClick={() => onChange('')}
152
// A builtin clear-button can't be tabbed to. A keyboard user can cmd+A and delete.
153
tabIndex={-1}
154
- className="flex size-6 items-center justify-center rounded-sm"
+ className="flex size-6 items-center justify-center rounded-sm [input:placeholder-shown+&]:hidden"
155
+ aria-label="Clear input"
156
>
157
<CloseIcon className="size-5 text-[--fg-80]" />
158
</button>
0 commit comments