Skip to content

Commit

Permalink
πŸ› Fix text decoration issues for underlined links #1901
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandolucchesi committed Sep 28, 2023
1 parent de463af commit 1bcc2bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/components/src/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const BaseLink = styled.a`
display: inline-flex;
align-items: center;
color: var(--slate-blue-95);
text-decoration: var(--textDecoration);
&[data-focus-visible-added]:focus {
${outlineTemplate(outline)}
}
Expand Down Expand Up @@ -141,7 +140,7 @@ export const Link = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
style={
{
...style,
'--textDecoration': underline ? 'underline' : 'none',
textDecoration: underline ? 'underline' : 'none',
} as CSSProperties
}
{...rest}
Expand Down

0 comments on commit 1bcc2bd

Please sign in to comment.