Skip to content

BIDI - Support base text direction #7264

Closed

Description

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:

  1. 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
image

  1. 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

image

@mattrosno , @joshblack FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Completed 🚢

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions