Skip to content

Commit

Permalink
Fix text-decoration-thickness in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrade committed Dec 19, 2024
1 parent df9188e commit 598be12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/wonder-blocks-button/src/components/button-core.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ export const _generateStyles = (
};
const activePressedStyling = {
color: light ? fadedColor : activeColor,
textDecoration: `underline ${theme.size.underline.active}px`,
textDecoration: "underline",
textDecorationThickness: theme.size.underline.active,
};

newStyles = {
Expand All @@ -497,7 +498,8 @@ export const _generateStyles = (
paddingRight: 0,
[":hover:not([aria-disabled=true])" as any]: {
textUnderlineOffset: theme.font.offset.default,
textDecoration: `underline ${theme.size.underline.hover}px`,
textDecoration: "underline",
textDecorationThickness: theme.size.underline.hover,
},
[":focus-visible:not([aria-disabled=true])" as any]:
focusStyling,
Expand Down

0 comments on commit 598be12

Please sign in to comment.