Add aria-label for item per page link
This commit is contained in:
parent
6f32b52ad4
commit
d1480afec9
1 changed files with 1 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ class SearchResultsPagerBlock extends BlockBase implements ContainerFactoryPlugi
|
|||
'#url' => $url,
|
||||
'#title' => $items_per_page,
|
||||
'#attributes' => [
|
||||
'aria-label' => $this->t($items_per_page . " items per page"),
|
||||
'class' => $active ? ['pager__link', 'pager__link--is-active', 'pager__itemsperpage'] : ['pager__link', 'pager__itemsperpage'],
|
||||
],
|
||||
'#wrapper_attributes' => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue