Skip to content

Commit 79c31c9

Browse files
committed
Fix table overflow caused by VisuallyHidden width
1 parent 231bb66 commit 79c31c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/components/Link.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ const Link: React.FC<IProps> = ({
135135
>
136136
<>
137137
{children}
138-
<VisuallyHidden>(opens in a new tab)</VisuallyHidden>
138+
<VisuallyHidden className="visually-hidden">
139+
(opens in a new tab)
140+
</VisuallyHidden>
139141
{!hideArrow && (
140142
<Box as="span" ml={0.5} mr={1.5} aria-hidden>
141143

src/components/MarkdownTable.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ const MarkdownTable: React.FC<IProps> = ({ children }) => (
1414
borderColor: "border",
1515
whiteSpace: "nowrap",
1616
},
17+
".chakra-link .visually-hidden": {
18+
width: "0px",
19+
},
1720
}}
1821
>
1922
{children}

0 commit comments

Comments
 (0)