Problem

The skiplink is wrapped in a div with an id - thats against the guidelinies for the theme layer & is unnessary markup

<div id="skip-link">
   <a href="#main-content" class="visually-hidden focusable">
         {{ 'Skip to main content'|t }}
     </a>
 </div>

Proposed solution

proposed fix is to add the #skip-link to .skiplink & change the css accordingly in seven & bartik

 <a href="#main-content" class="visually-hidden focusable skip-link">
   {{ 'Skip to main content'|t }}
 </a>
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mortendk’s picture

Status: Active » Needs review
FileSize
3.72 KB

and patch

amateescu’s picture

Status: Needs review » Needs work
+++ b/core/modules/overlay/css/overlay-child.css
@@ -61,7 +61,7 @@ html[dir="rtl"] {
+.overlay .skip-link a {

This cannot work as the 'skip-link' class is now set on the anchor element. I guess you actually want a.skip-link :)

Same for everywhere in the patch.

mortendk’s picture

Doh im an idiot ;)

fixed em thanx for the heads up

mortendk’s picture

Status: Needs work » Needs review

bot get to work

mortendk’s picture

Status: Needs review » Closed (duplicate)

doh this is a duplicate moving it to here #1982256: Clean up html.html.twig markup