Skip to content

Commit ac74e1b

Browse files
Match sidebar search clear button hover to the search dialog's
Drop the Chakra-era gray.100/gray.200 hover/active restatements and the padding that widened the button: the plain ghost recipe (as used by SearchDialog's clear button) gives the lighter blackAlpha hover, and the square button's hover circle nests into the pill's rounded end.
1 parent e933d1a commit ac74e1b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/workbench/SideBarHeader.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,11 @@ const SideBarHeader = ({
268268
<IconButton
269269
aria-label={intl.formatMessage({ id: "clear" })}
270270
css={{
271-
backgroundColor: "white",
272-
// Restated: the background utility beats the ghost
273-
// variant's recipe-layer hover/active.
274-
_hover: { backgroundColor: "gray.100" },
275-
_active: { backgroundColor: "gray.200" },
276271
// Also used for Zoom, move to theme.
277272
color: "#838383",
278273
fontSize: "2xl",
279274
position: "absolute",
280275
right: "0",
281-
pr: "3",
282-
pl: "3",
283276
}}
284277
onPress={handleClear}
285278
variant="ghost"

0 commit comments

Comments
 (0)