Skip to content

Commit

Permalink
Force display of in custom css input boxes to LTR (#50768)
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed May 19, 2023
1 parent f91be8d commit c1238e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-editor/src/components/global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@

.block-editor-global-styles-advanced-panel__custom-css-input textarea {
font-family: $editor_html_font;
// CSS input is always LTR regardless of language.
/*rtl:ignore*/
direction: ltr;
}

.block-editor-global-styles-advanced-panel__custom-css-validation-wrapper {
Expand Down
3 changes: 3 additions & 0 deletions packages/edit-site/src/components/global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@

.components-textarea-control__input {
flex: 1 1 auto;
// CSS input is always LTR regardless of language.
/*rtl:ignore*/
direction: ltr;
}
}
}
Expand Down

0 comments on commit c1238e4

Please sign in to comment.