Open
Description
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
Details
🎯 Steps to Reproduce
- Open fa.react.dev or ar.react.dev.
- Navigate to any code example.
- Hover over the code section.
- 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.