Skip to content

Commit fdf56eb

Browse files
committed
Fix inline links in text blocks.
1 parent 51bc654 commit fdf56eb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/Link.styles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type LinkProps = {
77
variant?: 'inline' | 'block'
88
}
99

10-
const linkInlineStyles = css`
10+
export const linkInlineStyles = css`
1111
color: ${$theme.color.link};
1212
text-underline-offset: 3px;
1313
text-decoration-thickness: 2px;

src/components/Typography.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { up } from 'styled-breakpoints'
22
import styled from 'styled-components'
33

44
import { $theme } from '../styles/theme'
5-
import { linkStyles } from './Link.styles'
5+
6+
import { linkInlineStyles } from './Link.styles'
67

78
export const Heading1 = styled.h1`
89
font-weight: ${$theme.fontWeight.black};
@@ -45,7 +46,7 @@ export const TextBlock = styled.div`
4546
}
4647
4748
a {
48-
${linkStyles};
49+
${linkInlineStyles};
4950
}
5051
5152
p {

0 commit comments

Comments
 (0)