Skip to content

Commit

Permalink
fix(v2): Code blocks should be LTR by default (#4277)
Browse files Browse the repository at this point in the history
* use LTR code code blocks

* code blocks should be LTR
  • Loading branch information
slorber authored Feb 23, 2021
1 parent 6ab5084 commit 3d00613
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function CodeBlock({
{codeBlockTitle}
</div>
)}
<div className={styles.codeBlockContent}>
<div className={clsx(styles.codeBlockContent, language)}>
<div
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
tabIndex={0}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

.codeBlockContent {
position: relative;
/*rtl:ignore*/
direction: ltr;
}

.codeBlockTitle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

.playgroundEditor {
font-family: var(--ifm-font-family-monospace) !important;
/*rtl:ignore*/
direction: ltr;
}

.playgroundPreview {
Expand Down

0 comments on commit 3d00613

Please sign in to comment.