Skip to content

Commit dfcdaa3

Browse files
committed
Add position relative to table container. Remove custom class from visually hidden
1 parent 79c31c9 commit dfcdaa3

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/components/Link.tsx

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

src/components/MarkdownTable.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@ export interface IProps {
66
}
77

88
const MarkdownTable: React.FC<IProps> = ({ children }) => (
9-
<Box my={8} overflowX="auto">
9+
<Box position="relative" my={8} overflowX="auto">
1010
<Table
1111
sx={{
1212
th: {
1313
borderBottom: "1px solid",
1414
borderColor: "border",
1515
whiteSpace: "nowrap",
1616
},
17-
".chakra-link .visually-hidden": {
18-
width: "0px",
19-
},
2017
}}
2118
>
2219
{children}

0 commit comments

Comments
 (0)