kolibri
kolibri copied to clipboard
Perseus definition popover tail points away from its word in RTL
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: release-v0.20.x
Observed behavior
- In an RTL interface language, the popover opened from a Perseus definition word is centred over the word, but its tail arrow sits about 240 px to the right of it.
- Measured at 1280×720 in Arabic: popover box x 357–645, word x 466–535, tail x 737–761.
- The tail's container carries
transform: translate(124px, 0)from wonder-blocks-tooltip 4.1.80; in an RTL box the container starts at the right edge, so the LTR offset pushes it past the popover.
Expected behavior
- In RTL the tail points at the word that opened the popover, as it does in LTR.
Steps to reproduce
- Import the Kolibri QA Channel and switch the interface language to العربية.
- Open Learn > Kolibri QA Channel > Geometría > Identifica figuras; reload until "¿Cuáles de las siguientes figuras son cuadriláteros?" (or "…triángulos?") appears.
- Click أظهر تلميحاً (3 يسار), then the word polígono in "Un cuadrilátero es un polígono con 4 lados."
Context
- Branch for #16054 on release-v0.20.x, Chromium 159, Linux.
Acceptance Criteria
- [ ] In Arabic, the definition popover's tail sits within the popover box and points at polígono.
- [ ] In English and Spanish, the tail position is unchanged.
AI usage
Claude Code found this during automated browser QA of #16054, measured the positions and drafted this issue.