[epub_viewer] Progress slider is missing aria-valuetext
🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:
- Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
- Confirm that you’ve read the guidelines in your comment.
Target branch: develop
Observed behavior
The EPUB reader's progress slider (BottomBar.vue#L22-L31) has no aria-valuetext. Chrome DevTools' Accessibility panel shows "Value description" as empty:
User-facing consequences
Screen reader users (VoiceOver, NVDA) hear only the raw number (e.g. "23") instead of a reading position.
Steps to reproduce
- Open an EPUB resource in Learn and wait for the progress bar at the bottom to load.
- In Chrome DevTools, select the
<input type="range">element and open the Accessibility tab. - "Value description" is empty.
Acceptance Criteria
- [ ] The slider's
aria-valuetextis the reading position as a locale-formatted percentage (e.g. "23%"), produced with vue-intl's$formatNumber(fraction, { style: 'percent' }), the call that already renders the percentage beside the slider atBottomBar.vue#L17-L19. - [ ]
__tests__/BottomBar.spec.jsassertsaria-valuetextfor at least twosliderValues.
AI usage
I wrote this issue report myself based on what I observed.
Hey @rtibbles, can you look into this and need your guidance before I move forward.
Hi! 👋
This issue is available for contribution and supports self-assignment. Here's how to get started:
- Comment
/assignto assign yourself to this issue - You can have up to 2 issues assigned at a time across all community repos
- Dropping an issue has a 7-day cooldown before the slot opens up
- Link your pull request to this issue when you submit it
📖 Read the Contributing guidelines before starting.
Are you preparing for Google Summer of Code? See our GSoC guidelines.
/assign
Hi! 👋
You've been assigned to this issue. Here's what to do next:
- Read the issue description carefully and make sure you understand the requirements
- Link your pull request to this issue when you submit it
- If you can no longer work on this, unassign yourself so others can pick it up
Good luck! 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.