omeka/Omeka

Pagination navigation needs unique landmark name

Closed this issue · 3 comments

Even though we provide an aria-label for our pagination element, accessibility audit tools are flagging it because the label is not unique. This is what we currently have.

<nav class="pagination-nav" aria-label="<?php echo __('Pagination'); ?>">

This is the error I see.

image

possibilities: mark the second pagination as aria-hidden? its duplication maybe isn't really useful for screenreader users. and if hidden it doesn't need the label

That works. It for sure reduces the number of landmarks a screenreader would have to navigate.

I think hidden is going to be dicey: it's going to be ignored or cause problems depending on the platform if the contents are tab-focusable, and making them all non-focusable then makes them not tabbable for anyone. So I don't know that that's going to be a workable option.