mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 05:42:34 +02:00
fix(v2): Code blocks should be LTR by default (#4277)
* use LTR code code blocks * code blocks should be LTR
This commit is contained in:
parent
6ab5084c87
commit
3d00613e5d
3 changed files with 5 additions and 1 deletions
|
@ -207,7 +207,7 @@ export default function CodeBlock({
|
||||||
{codeBlockTitle}
|
{codeBlockTitle}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={styles.codeBlockContent}>
|
<div className={clsx(styles.codeBlockContent, language)}>
|
||||||
<div
|
<div
|
||||||
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
|
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
.codeBlockContent {
|
.codeBlockContent {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
/*rtl:ignore*/
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.codeBlockTitle {
|
.codeBlockTitle {
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
|
|
||||||
.playgroundEditor {
|
.playgroundEditor {
|
||||||
font-family: var(--ifm-font-family-monospace) !important;
|
font-family: var(--ifm-font-family-monospace) !important;
|
||||||
|
/*rtl:ignore*/
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.playgroundPreview {
|
.playgroundPreview {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue