Skip to content
Snippets Groups Projects
Commit 9dbee7cf authored by Moritz Strohm's avatar Moritz Strohm
Browse files

Fix for BIESt #104

parent 9fc9db5d
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,15 @@
display: none;
}
button.skiplink {
border: 0;
background-color: #fff;
color: @base-color;
line-height: 1em;
margin-bottom: 0.1em;
}
body.enable-skiplinks {
*:not(:empty):focus {
outline: 2px dashed @orange;
......
......@@ -7,7 +7,7 @@
<? foreach ($navigation as $nav) : ?>
<li>
<? if (mb_substr($url = $nav->getURL(), 0, 1) == '#') : ?>
<a href="<?= $url ?>" onclick="STUDIP.SkipLinks.setActiveTarget('<?= $url ?>');" tabindex="<?= $i++ ?>"><?= htmlReady($nav->getTitle()) ?></a>
<button class="skiplink" role="link" onclick="STUDIP.SkipLinks.setActiveTarget('<?= htmlReady($url) ?>');" tabindex="<?= $i++ ?>"><?= htmlReady($nav->getTitle()) ?></button>
<? else : ?>
<? if (is_internal_url($url)) : ?>
<a href="<?= URLHelper::getLink($url) ?>" tabindex="<?= $i++ ?>"><?= htmlReady($nav->getTitle()) ?></a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment