Skip to content

Unstable - RTL issues #4728

Closed
learningequality/kolibri-design-system
#784

Description

@pcenov

Observed behavior

When bulk editing the language of the resources in Arabic the text is not right aligned with the radio buttons. This is also the case at the Content library in the Language filter.

Expected behavior

The strings should be right aligned

Steps to reproduce the issue

See the attached screenshots

Additional information

2024-09-12_15-35-10

2024-09-12_10-37-50

Usage Details

Activity

  1. pcenov commented on Sep 12, 2024

    @pcenov
    MemberAuthor
  2. AlexVelezLl commented on Sep 12, 2024

    @AlexVelezLl
    Member

    I think I saw this some time ago. This is an issue with KCheckbox and KRadioButton applying dir: auto to the label, (e.g. here) and this makes that the alignment takes the dir of the text rather than the dir of the user language. The solution would be to remove that dir prop on the label, but I dont know if this is going to bring any inconsistency somewhere. Do you have any thoughts about this @nucleogenesis @MisRob?

    I think for now at least we can add a prop to disable this behaviour.

  3. MisRob commented on Sep 13, 2024

    @MisRob
    Member

    Yes @AlexVelezLl, that makes sense to me. Thank you.

  4. MisRob commented on Sep 13, 2024

    @MisRob
    Member

    Perhaps more general labelDirection or labelDir prop would make sense. We could have it set by default to 'auto' so that it doesn't break any of the existing places, but it would be ready to accept any other dir values such as 'ltr', 'rtl'. This would have benefit of being aligned with the native platform.

  5. self-assigned this
    on Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions