• Hi, I’m working on improving the accessibility of a website that uses this plugin and one of the things that Google Lighthouse complains about is the lack of discernible names for the links within the pagination the plugin generates.

    My specific use case does not specify text to show for the next, previous, first, and last links and instead simply shows the chevrons that get added through pseudo elements so what the links do is not clear for accessibility purposes.

    I’ve tested editing the plugin files directly (which will obviously get overwritten the next time this plugin is updated) to see how easy of a change it would be to implement and it seems pretty simple so I was curious if it was something that you’d be willing to add in the next release of the plugin. I would open a PR against this code base with the changes, but I don’t see a repo linked.

    Here are my suggested changes that add an aria-label attribute to these links within the core.php:
    Line 101:
    'aria-label' => 'First Page'

    Line 110:
    'aria-label' => 'Previous Page'

    Line 182:
    'aria-label' => 'Next Page'

    Line 190:
    'aria-label' => 'Last Page'

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Accessibility Improvements Request’ is closed to new replies.