kolibri
kolibri copied to clipboard
The Perseus definition popover has no accessible name and an untranslated "Close Popover" button
❌ 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
- Opening a definition word shows a
dialogwith no accessible name or description: Wonder Blocks'Popoverpointsaria-labelledby/aria-describedbyat ids onlyPopoverContentrenders, and Perseus'sdefinition.tsxusesPopoverContentCorewith noaria-label. - The dialog's close button reads
Close Popoverin every interface language:definition.tsxpasses nocloseButtonLabel. - Same on Perseus 78.2.0 (
release-v0.20.x), 87.2.2 (develop) and Khan/perseusmain; Perseus exposes no prop for either.
Expected behavior
- The dialog is named by the defined word, and the close button reads a translated label.
User-facing consequences
- Screen-reader users hear an unnamed dialog and an English close button.
Steps to reproduce
- Import Kolibri QA Channel (
95a52b386f2c485cb97dd60901674a98), open Geometría > Identifica figuras, Q1, take hint 1. - Activate
polígono. - Inspect the opened
dialog: no accessible name; its close button is namedClose Popover.
Context
release-v0.20.xat e3b074b70f plus #16061; develop's working definition widget behaves the same.
Acceptance Criteria
- [ ] The open definition
dialog's accessible name is the defined word, and its description is the definition text. - [ ] The close button's accessible name is translated in a non-English interface.
AI usage
Claude Code found this while fixing #16054, checked it against the Perseus and Wonder Blocks sources and drafted this issue.