main ← fix/featured-link-rtl
opened 01:02PM - 01 Apr 26 UTC
The external link icon (up-right-from-square) on topic featured links was not RT…L-aware in two ways:
1. The icon itself wasn't mirrored — it pointed top-right in both LTR and RTL. Added it to the scaleX(-1) flip list in rtl.scss so it mirrors to top-left in RTL contexts.
2. The icon's spacing used a physical `margin-right` which placed the gap on the wrong side in RTL. Switched to `margin-inline-end` so it respects text direction.
**LTR**
<img width="374" height="221" alt="2026-04-01 @ 12 57 16" src="https://github.com/user-attachments/assets/d3ec17de-4fff-4305-bca5-dfaf36b6287c" />
**RTL (before)**
<img width="353" height="201" alt="2026-04-01 @ 12 59 16" src="https://github.com/user-attachments/assets/ce39b733-8a99-4c14-a90f-cdfdd417a365" />
**RTL (after)**
<img width="340" height="197" alt="2026-04-01 @ 12 58 23" src="https://github.com/user-attachments/assets/513e6848-7dfa-460f-adda-ef3c4ede2e08" />
https://meta.discourse.org/t/397432