Skip to content

Commit

Permalink
fix(code-editor): force element that wraps editor to be LTR (#9626)
Browse files Browse the repository at this point in the history
* fix(code-editor): force element that wraps editor to be LTR

* chore: update snaps
  • Loading branch information
mcoker authored Sep 18, 2023
1 parent b1aaf3c commit 1c70d68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> {
);

const editor = (
<div className={css(styles.codeEditorCode)} ref={this.wrapperRef} tabIndex={0}>
<div className={css(styles.codeEditorCode)} ref={this.wrapperRef} tabIndex={0} dir="ltr">
<MonacoEditor
height={height}
width={width}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ exports[`CodeEditor matches snapshot with all props 1`] = `
/>
<div
class="pf-v5-c-code-editor__code"
dir="ltr"
tabindex="0"
>
<div
Expand Down Expand Up @@ -376,6 +377,7 @@ exports[`CodeEditor matches snapshot without props 1`] = `
>
<div
class="pf-v5-c-code-editor__code"
dir="ltr"
tabindex="0"
>
<div
Expand Down

0 comments on commit 1c70d68

Please sign in to comment.