Skip to content

Commit 0472dac

Browse files
authored
Merge pull request #10590 from ethereum/fix-button-link-styles
Fix `ButtonLink` styles
2 parents 2434529 + 86aeba6 commit 0472dac

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/ButtonLink.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,21 @@ const ButtonLink: React.FC<IProps> = ({ children, isSecondary, ...props }) => {
1212
* Prevent React warning that does not recognize `isSecondary` on DOM
1313
* while still sending prop to the theme config
1414
*/
15-
const styles = useStyleConfig("Button", { ...props, isSecondary })
15+
const styles = useStyleConfig("Button", {
16+
...props,
17+
isSecondary,
18+
})
1619

1720
return (
1821
<Button
1922
as={Link}
20-
textDecoration="none"
2123
activeStyle={{}}
2224
// `styles` object sent to `sx` prop per convention
23-
sx={styles}
25+
sx={{
26+
...styles,
27+
textDecoration: "none",
28+
_hover: { ...styles["_hover"], textDecoration: "none" },
29+
}}
2430
{...props}
2531
>
2632
{children}

0 commit comments

Comments
 (0)