Our accessibility folks note that if two nav elements appear on the same page, they should have aria-labels to differentiate between their purposes.
We’re using the GuestUser, and find that the GuestUser plugin adds a nav with no label – it’s structually different than the banner for an admin user. Is there a way that I can add an aria-label in this plugin, or that the plugin could be updated to provide this feature?
Can you point to what element is the offending one? My recollection is that Guest User does just use the “normal” user bar that’s used when regular users are logged in when the plugin isn’t installed. But maybe you’re talking about something else.
And the code for the login bar. I’d just like to be able to add an aria-label on the admin-bar, or even have a default one supplied by Omeka like aria-label="Site Login"
It does look like that’s the same code as the main Omeka user info, so this probably isn’t a GuestUser issue after all. When I was looking initially I was comparing it to the code on the admin side, which uses a <header> element.
It’ll be in an upcoming release, but I can’t give you a date.
common/admin-bar.php is the file that generates that bar and you can override it in your theme to set an aria-label or make whatever other changes you want.
I also notice a related issue re: pagination. In:
application/views/scripts/common/pagination_control.php
There’s a labeled nav: <nav class="pagination-nav" aria-label="<?php echo __('Pagination'); ?>">
But since this element is used twice (once at the bottom and once at the top of many pages, at least in some themes), the repetion fails to meet the “unique accessible name as required when two or more nav elements are present” .
Is there by any chance a fix for that coming as well?
This change is in: we’re doing “Top pagination” and “Bottom pagination” for our own, and themes/plugins can pass whatever they want as an aria-label for any instance of the pagination.