Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle component does not support right-to-left (RTL) directionality #591

Open
rstencel opened this issue Nov 3, 2023 · 0 comments
Open
Assignees

Comments

@rstencel
Copy link

rstencel commented Nov 3, 2023

Detailed description

Describe in detail the issue you're having.

When setting document directionality to right-to-left to support e.g. Arabic language then Toggle is displayed incorrectly.

Is this a feature request (new component, new icon), a bug, or a general issue?

Bug

Is this issue related to a specific component?

Toggle

What did you expect to happen? What happened instead? What would you like to see changed?

When document's directionality is set to right-to-left then layout of a toggled Toggle is broken.

For left-to-right directionality:

image

For right-to-left directionality:

image

What browser are you working in?

Chrome 117.0.5938.149

What version of the WFP UI (Carbon Design System) are you using?

1.22.4

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Partner Connect

Steps to reproduce the issue

  1. Open https://uikit.wfp.org/docs/index.html?path=/docs/components-ui-elements-toggle--regular
  2. Toggle any demo Toggle
  3. Open dev tools -> terminal
  4. Type document.dir = 'rtl' and click Enter
@Utzel-Butzel Utzel-Butzel self-assigned this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants