Pkp-lib: Skip links and anchors in the default theme should appear within landmarks

Created on 1 Nov 2019  路  13Comments  路  Source: pkp/pkp-lib

Our skip links should be moved inside the role="banner" element:

<header role="banner">
  <nav ...>
    <a href="#main">...</a>
    ...
  </nav>
</header>

And the anchors where those links skip to should be moved into the landmark role elements they pertain to:

<main role="main">
  <a id="main"></a>
  ...

Most helpful comment

@israelcefrin I'll leave it at In Progress until the PRs are merged and then move to Needs Documentation.

All 13 comments

Hi @NateWr and @thinkbulecount2 , I've reviewed this one. The skip to content links are working fine and accessible through keyboard. Screen reader recognize it as links.

I'd just to recommend to move the skip navigation as the first thing of the HEADER container, before the Journal title H1. I mean, move the cmp_skip_to_content to above of pkp_site_name_wrapper

Also, adding an aria-label="Skip Links to content", e.g.:

Thanks @israelcefrin. The Open Menu button should not be announced. It is only for visual users to toggle the menu open/closed on small devices. The menu is available either way for screen readers.

Ok, so @thinkbulecount2 it looks like we still need the following changes:

  • [x] {include file="frontend/components/skipLinks.tpl"} should be moved to the first child element of <header> in frontend/components/header.tpl.
  • [x] The <nav> tag in /frontend/components/skipLinks.tpl should have the aria-label="Jump to content links" attribute.

Thanks @thinkbulecount2. One quick change needed. OMP too! And I guess now we need to do OPS...

Thanks @thinkbulecount2. One quick change needed. OMP too! And I guess now we need to do OPS...

Will do OMP and then do an install of OPS!

Also @NateWr made some changes as per PR comments!

PR for OMP: https://github.com/pkp/omp/pull/798

cc: @NateWr

@NateWr let me know whether you think it is required a second review round, otherwise, I will move the issue on project to the Done board.

@israelcefrin I'll leave it at In Progress until the PRs are merged and then move to Needs Documentation.

PR for OPS: https://github.com/pkp/ops/pull/14

cc: @NateWr

Thanks everyone! Merged. :+1:

Was this page helpful?
0 / 5 - 0 ratings