Skip to content

Commit ec7fab8

Browse files
committed
Bug fix for #9186
1 parent 5c9401d commit ec7fab8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mdx/code.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const MonoText = props => <Text sx={{fontFamily: 'mono', fontSize: 1}} {...props
5454

5555
const CodeBlock = ({children, code, className, style}) => (
5656
<Box
57+
role="presentation"
5758
sx={{
5859
// Make <pre> adjust to the width of the container
5960
// https://stackoverflow.com/a/14406386
@@ -64,6 +65,7 @@ const CodeBlock = ({children, code, className, style}) => (
6465
}}
6566
>
6667
<Box
68+
role="presentation"
6769
style={style}
6870
sx={{
6971
...(code ? {display: 'flex', justifyContent: 'space-between', flexDirection: 'row-reverse'} : {}),

0 commit comments

Comments
 (0)