Skip to content

Commit 639ff3d

Browse files
committed
fix: #97202 improve focus and hover states for MenuButton component
1 parent d937276 commit 639ff3d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/webchat-ui/components/plugins/input/base/BaseInput.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ const MenuButton = styled(Button)<{ open: boolean }>(({ theme, open }) => ({
8989
...iconButtonStyles,
9090
padding: "6px",
9191
fill: open ? theme.primaryColor : "initial",
92+
":focus-visible": {
93+
outline: `2px solid ${theme.primaryColor}`,
94+
},
95+
":hover": {
96+
svg: {
97+
fill: theme.primaryColor,
98+
},
99+
},
92100
}));
93101

94102
const AttachFileButton = styled(Button)(({ theme }) => iconButtonStyles);

0 commit comments

Comments
 (0)