Skip to content

Commit 0ddd3b8

Browse files
committed
use literal inset-inline-start css prop since insetInlineStart style prop is not working fine with rtl
1 parent 6429030 commit 0ddd3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TableOfContents/TableOfContentsLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Link = ({
3939
// 8px is the padding for each nested list
4040
// 4px is half of the width of the dot
4141
// 1px for the border
42-
insetInlineStart: `calc(-16px - 8px * ${depth} - 4px - 1px)`,
42+
"inset-inline-start": `calc(-16px - 8px * ${depth} - 4px - 1px)`,
4343
top: "50%",
4444
mt: -1,
4545
},

0 commit comments

Comments
 (0)