From 9dbee7cfa044535bc85e14760c29998d1db254d5 Mon Sep 17 00:00:00 2001 From: Moritz Strohm <strohm@data-quest.de> Date: Fri, 22 Apr 2022 09:52:20 +0000 Subject: [PATCH] Fix for BIESt #104 --- resources/assets/stylesheets/less/skiplinks.less | 9 +++++++++ templates/skiplinks.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/assets/stylesheets/less/skiplinks.less b/resources/assets/stylesheets/less/skiplinks.less index edbf09a17cf..b35cfb601a4 100644 --- a/resources/assets/stylesheets/less/skiplinks.less +++ b/resources/assets/stylesheets/less/skiplinks.less @@ -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; diff --git a/templates/skiplinks.php b/templates/skiplinks.php index 0cb1800fb6a..fbd8ab74b69 100644 --- a/templates/skiplinks.php +++ b/templates/skiplinks.php @@ -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> -- GitLab