Bug 42498: Fix invalid aria attribute in OPAC search results pagination
This patch corrects the aria-current attribute in OPAC search results pagination. There should be no aria-current attribute on the list item, and the aria-current value on the link should be "page." To test, apply the patch and perform a catalog search in the OPAC which will return multiple pages of results. View the page source or use the developer console to inspect the HTML of the active pagination link. It should have an aria-current label with the value "page." The containing list item should not have an aria-current label. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f545db2179
commit
c64f707691
|
|
@ -26,8 +26,8 @@
|
|||
[% END %]
|
||||
[% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
|
||||
[% IF ( PAGE_NUMBER.highlight ) %]
|
||||
<li class="page-item active" aria-current="active">
|
||||
<a class="page-link" href="#" aria-label="Current page: Page [% PAGE_NUMBER.pg | html %]" aria-current="true">[% PAGE_NUMBER.pg | html %]</a>
|
||||
<li class="page-item active">
|
||||
<a class="page-link" href="#" aria-label="Current page: Page [% PAGE_NUMBER.pg | html %]" aria-current="page">[% PAGE_NUMBER.pg | html %]</a>
|
||||
</li>
|
||||
[% ELSE %]
|
||||
<li class="page-item">
|
||||
|
|
|
|||
Loading…
Reference in New Issue