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

Answer question of directionality #1105

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions site/src/pages/components/switch.explainer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,12 @@ The switch element can be associated with the existing `role="switch"`.

### Globalization

<div class="question">
Is thumb in the "on" position on the left in a `rtl` directional environment?
</div>
The switch should adapt to the current text direction[^11].

| Writing mode | Direction | "on" position |
| ------------- | ------------- | ------------- |
| horizontal-tb | Right to left | left side |
| horizontal-tb | Left to right | right side |

### Security

Expand Down Expand Up @@ -564,3 +567,4 @@ References:
[^8]: Elements approach resolution https://github.com/openui/open-ui/issues/702#issuecomment-1664464531
[^9]: Thumb content resolution https://github.com/openui/open-ui/issues/979
[^10]: Track content resolution https://github.com/openui/open-ui/issues/978
[^11]: Direction change resolution https://github.com/openui/open-ui/issues/1098