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

Is the project ready for RTL, when switching to RTL will the lists be switched and the focus will be from right to left? #172

Open
cabikhalil-softimpact opened this issue Nov 28, 2024 · 1 comment

Comments

@cabikhalil-softimpact
Copy link

Is the project ready for RTL, when switching to RTL will the lists be switched and the focus will be from right to left?

@cabikhalil-softimpact cabikhalil-softimpact added the bug Something isn't working label Nov 28, 2024
@pierpo
Copy link
Member

pierpo commented Nov 29, 2024

Hey! Wow, that's a great point. I've never thought about it.

  • The VirtualizedLists won't, because we never considered it. Default focus will be on the leftmost element 😬
  • What defines the spatial layout is the rendering order in the tree. So, if you invert the layout using CSS, it won't work ❌ If you invert the layout through JS by reversing the lists, it should work ✅

We'll have to work on this eventually. PRs are welcome 👍

@pierpo pierpo added feature request and removed bug Something isn't working labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants