kolibri
kolibri copied to clipboard
Bloom Player's page-turn buttons show no focus indicator
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: develop
Observed behavior
- When the next- or previous-page button in a Bloom book has keyboard focus, it looks the same as when it does not.
- The bundle renders the button as a MUI
IconButtonwithclassName:"nav-button",disableRipple:!0. The player CSS has no:focusrule for.nav-button,.swiper-button-nextor.swiper-button-prev. - release-v0.20.x's older fork bundle,
bloomPlayer-02a77592459cdf0b1bd7.min.js, also renders the button withdisableRipple:!0.
Expected behavior
A focus indicator, as WCAG 2.4.7 (Focus Visible, level AA) requires.
User-facing consequences
A learner paging a Bloom book with Tab and Enter cannot see where focus is.
Steps to reproduce
- On develop at 758605b764, import the Bloom folder of the Kolibri QA Channel (token
nakav-mafak). - Open "Стаза од давнина" in Learn > Library > Kolibri QA Channel > Bloom > bloompub.
- Press Tab four times: focus moves through "Choose Language", "PlayPause" and the page text, then to the round button right of the page.
- That button looks the same as before it had focus. Pressing Enter turns the page.
Context
- develop at 758605b764 ships
static/bloom/bloomPlayer-36bc45961ea5d0da87f9.js, built frombloom_build/(its patches touch the buttons' size and opacity, not their focus style). - Seen in Chromium (Playwright) on Linux.
Acceptance Criteria
- [ ] With keyboard focus, the next- and previous-page buttons show an indicator that the unfocused buttons do not.
- [ ] The indicator shows in a left-to-right book and in a right-to-left book.
AI usage
Claude Code found this during manual QA of the #16025 backport: it paged the book by keyboard, compared captures of the focused and unfocused button, and read both bundles. It drafted this issue.