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

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

Open
mrbadri opened this issue Mar 4, 2025 · 0 comments · May be fixed by #7669
Open

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

mrbadri opened this issue Mar 4, 2025 · 0 comments · May be fixed by #7669

Comments

@mrbadri
Copy link

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
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