exercism
exercism copied to clipboard
Pagination of solutions (and likely other things) doesn't move focus when page changes
Linking Accessible Pagination. Note that basically everything from that document has been implemented. A few comments of what's currently implemented and what I expected.
- Pagination is using
buttonbut those buttons are without type. This is fine because they are not contained in a form, but explicitly labelling them asbutton, would be good because it's indicative that it has userland defined behaviour. - ...but pagination changes the URL. This means that those buttons should really be links.
- ...because the URL changes, the content changes, and that new content isn't really announced to the user.
- ...you cannot put
rel="next"on buttons, but you probably want to.
I recommend two things:
- Update the title to say page x out of y (e.g. Page 3 out 7 of SleeplessByte JavaScript Solutions)
- Move the focus to the paginated content
There's probably more work to be done.