@sanity/ui 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "sideEffects": false,
5
5
  "types": "./dist/index.d.ts",
6
6
  "source": "./src/index.ts",
@@ -132,6 +132,12 @@ const RightCard = styled(Card)`
132
132
  right: 0;
133
133
  `
134
134
 
135
+ const TextInputClearButton = styled(Button)({
136
+ '&:not([hidden])': {
137
+ display: 'block',
138
+ },
139
+ })
140
+
135
141
  /**
136
142
  * @public
137
143
  */
@@ -291,7 +297,7 @@ export const TextInput = forwardRef(function TextInput(
291
297
  style={CLEAR_BUTTON_BOX_STYLE}
292
298
  tone={customValidity ? 'critical' : 'inherit'}
293
299
  >
294
- <Button
300
+ <TextInputClearButton
295
301
  aria-label="Clear"
296
302
  data-qa="clear-button"
297
303
  fontSize={fontSize}