mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 04:44:25 +02:00
Accessibility: improve pagination
This commit is contained in:
parent
e170c889d2
commit
472ad08090
@ -9,10 +9,11 @@ use Icinga\Web\Url;
|
|||||||
|
|
||||||
if ($this->pageCount <= 1) return;
|
if ($this->pageCount <= 1) return;
|
||||||
|
|
||||||
?><ul class="pagination"
|
?><p id="paginationlabel" class="audible"><?= t('Pagination') ?></p>
|
||||||
|
<ul class="pagination" aria-labelledby="paginationlabel" role="navigation"
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$fromto = t('%d to %d of %d');
|
$fromto = t('Show rows %d to %d of %d');
|
||||||
$total = $this->totalItemCount;
|
$total = $this->totalItemCount;
|
||||||
$limit = $this->itemCountPerPage;
|
$limit = $this->itemCountPerPage;
|
||||||
$title_prev = sprintf(
|
$title_prev = sprintf(
|
||||||
@ -28,7 +29,9 @@ $title_next = sprintf(
|
|||||||
($this->current + 1) * $limit,
|
($this->current + 1) * $limit,
|
||||||
$total
|
$total
|
||||||
);
|
);
|
||||||
$li = ' ><li%s><a href="%s" title="%s">%s</a></li
|
$li = ' ><li%s><span class="audible">'
|
||||||
|
. t('Page')
|
||||||
|
. ' </span><a href="%s" title="%s">%s</a></li
|
||||||
';
|
';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -65,7 +68,7 @@ foreach ($this->pagesInRange as $page) {
|
|||||||
$class,
|
$class,
|
||||||
Url::fromRequest()->overwriteParams(
|
Url::fromRequest()->overwriteParams(
|
||||||
array('page' => $page)
|
array('page' => $page)
|
||||||
)->getAbsoluteUrl(),
|
),
|
||||||
$title,
|
$title,
|
||||||
$page
|
$page
|
||||||
);
|
);
|
||||||
|
@ -309,6 +309,12 @@ html {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.audible {
|
||||||
|
left: -999em;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* TODO: replace this with .error */
|
||||||
.fileNotReadable {
|
.fileNotReadable {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
background-color: @colorCritical;
|
background-color: @colorCritical;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user