Closed
Description
openedon Nov 10, 2020
Base text direction is an integral part of the overall Bidi support and enables correct editing and readability of dynamic data for BIDI languages ( Arabic, Hebrew, Urdu)
Carbon code allows to specify following settings for the text direction, using textDir property :
- auto
- ltr
- rtl
However most of Carbon components does not apply text direction processing expected to happen according to this property settings and as a result of that , actual text direction inherits the page direction (which is by default LTR and is RTL when RTL style is applied), independently on textDir property setting
Examples:
- Base text direction is not applied on Rich text editor
Steps:
Apply RTL style on Carbon
Set textDir property = rtl
Text inside editor still has LTR text direction
- Base text direction is not applied on combo box
Steps:
Apply RTL style on Carbon
Set textDir property = auto
Text at combo has RTL text direction
@mattrosno , @joshblack FYI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
carbon-componentscarbon-componentscarbon-components-reactcarbon-components-reactUmbrella issues, surfaced in Projects viewsUmbrella issues, surfaced in Projects views
Type
Projects
Status
Completed 🚢