Skip Links: Remove logo focus and move links into the menu
This commit is contained in:
parent
cd11cf3469
commit
936bfd43b0
|
@ -7,22 +7,6 @@ use Icinga\Authentication\Manager as Auth;
|
||||||
|
|
||||||
if (Auth::getInstance()->isAuthenticated()): ?>
|
if (Auth::getInstance()->isAuthenticated()): ?>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<div class="skip-links">
|
|
||||||
<nav>
|
|
||||||
<h1 class="sr-only"><?= t('Accessibility Skip Links'); ?></h1>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a tabindex="0" href="#main"><?= t('Skip to Content'); ?></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a tabindex="0" href="#search"><?= t('Skip to Search'); ?></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a tabindex="0" href="#navigation"><?= t('Skip to Navigation'); ?></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
<ul id="notifications"><?php
|
<ul id="notifications"><?php
|
||||||
|
|
||||||
$moduleName = $this->layout()->moduleName;
|
$moduleName = $this->layout()->moduleName;
|
||||||
|
@ -44,8 +28,9 @@ if ($notifications->hasMessages()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?></ul>
|
?></ul>
|
||||||
<div id="logo" data-base-target="_main"><a href="<?= $this->href('/dashboard') ?>"><img aria-hidden="true" src="<?= $this->href('img/logo_icinga-inv.png') ?>" class="logo" alt="<?= t('Dashboard') ?>" /></a>
|
<div id="logo" data-base-target="_main">
|
||||||
</div>
|
<img aria-hidden="true" src="<?= $this->href('img/logo_icinga-inv.png') ?>" class="logo" alt="<?= t('Dashboard') ?>" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (!$this->layout()->isIframe): ?>
|
<?php if (!$this->layout()->isIframe): ?>
|
||||||
|
|
|
@ -10,6 +10,14 @@ if (! $this->auth()->isAuthenticated()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
<div class="skip-links">
|
||||||
|
<h1 class="sr-only"><?= t('Accessibility Skip Links'); ?></h1>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a tabindex="0" href="#main"><?= t('Skip to Content'); ?></a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<div id="menu" data-last-update="<?= (time() - 14) ?>000" data-base-target="_main" class="container"
|
<div id="menu" data-last-update="<?= (time() - 14) ?>000" data-base-target="_main" class="container"
|
||||||
data-icinga-url="<?= $this->href('layout/menu') ?>" data-icinga-refresh="15">
|
data-icinga-url="<?= $this->href('layout/menu') ?>" data-icinga-refresh="15">
|
||||||
<?= $this->partial(
|
<?= $this->partial(
|
||||||
|
|
|
@ -285,7 +285,7 @@ a:focus {
|
||||||
display: block;
|
display: block;
|
||||||
left: -999em;
|
left: -999em;
|
||||||
width: 10.4em;
|
width: 10.4em;
|
||||||
top: 0.4em;
|
top: 0em;
|
||||||
padding: 0.8em;
|
padding: 0.8em;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
Loading…
Reference in New Issue