mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 12:22:45 +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}
|
||||
</div>
|
||||
)}
|
||||
<div className={styles.codeBlockContent}>
|
||||
<div className={clsx(styles.codeBlockContent, language)}>
|
||||
<div
|
||||
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
|
||||
tabIndex={0}
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
.codeBlockContent {
|
||||
position: relative;
|
||||
/*rtl:ignore*/
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.codeBlockTitle {
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
.playgroundEditor {
|
||||
font-family: var(--ifm-font-family-monospace) !important;
|
||||
/*rtl:ignore*/
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.playgroundPreview {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue