While testing pager, my site using stable theme (pager.html.twig) file which is having ellipsis and giving violation for role="presentation" attributes.
Pager template fails accessibility tests for Ellipsis

To solve this problem, we need to fix the following:
List element has direct children that are not allowed: [role=presentation] like below example
<li class="pager__item pager__item--ellipsis" role="presentation">…</li>

Steps to reproduce

Create a view that uses a full pager, and a sufficient amount of content to create many pages for that view.

Proposed resolution

instead of using role="presentation" we can use aria-label="additional pages"attribute

CommentFileSizeAuthor
#2 base-them.patch380 bytesanmol singh

Issue fork stable-3579429

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anmol singh created an issue. See original summary.

anmol singh’s picture

StatusFileSize
new380 bytes
anmol singh’s picture

anmol singh’s picture

Title: Getting Accessibility Violations Errors. » Getting Accessibility Violations Errors on pager
Issue summary: View changes
anmol singh’s picture

anmol singh’s picture

Issue summary: View changes
anmol singh’s picture

Issue summary: View changes