Skip to content

[Bug]: Code Overlay Highlight Not Displayed Correctly in RTL Mode #7668

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

Closed
mrbadri opened this issue Mar 4, 2025 · 1 comment · Fixed by #7669
Closed

[Bug]: Code Overlay Highlight Not Displayed Correctly in RTL Mode #7668

mrbadri opened this issue Mar 4, 2025 · 1 comment · Fixed by #7669

Comments

@mrbadri
Copy link
Contributor

mrbadri commented Mar 4, 2025

Summary

When viewing code examples in RTL mode (e.g., Arabic, Hebrew, Persian) on react.dev, the code overlay highlight does not appear correctly. Normally, when hovering over the code section, the corresponding preview area should be highlighted, but in RTL mode, the overlay is either misaligned or does not appear at all.

Page

https://fa.react.dev/

Details

🎯 Steps to Reproduce

  1. Open fa.react.dev or ar.react.dev.
  2. Navigate to any code example.
  3. Hover over the code section.
  4. Notice that the overlay highlight does not appear correctly over the preview.

✅ Expected Behavior

  • Hovering over the code section should highlight the corresponding preview area correctly, just as it does in LTR mode.

❌ Actual Behavior

  • The overlay highlight is missing or misaligned in RTL mode.

🎥 Screenshots / Videos

⚠️ Bug in RTL mode

Screen.Recording.2025-03-04.at.1.30.14.PM.mov
@mrbadri
Copy link
Contributor Author

mrbadri commented May 13, 2025

We are actively trying to revive the fa.react.dev repository in this issue.
Join us and show your support: #7786

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

Successfully merging a pull request may close this issue.

1 participant