Closed (fixed)
Project:
Zen
Version:
7.x-5.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2013 at 11:56 UTC
Updated:
24 Mar 2015 at 03:44 UTC
Jump to comment: Most recent

Comments
Comment #1
echoz commentedThe outline is displayed since #1532742: Fix skiplink behavior for Opera and Webkit browsers was committed. The outline can be hidden with outline: 0; on
the :focus pseudo class of the element that has the tabindex, which by default is nav id="main-menu" role="navigation", for example, nav[role=navigation]:focus {outline: 0;}the tabindex attribute:Reference: https://github.com/suitcss/base/blob/gh-pages/base.css
This fix seems fine concerning accessibility, in that the focus still shows the dotted outline tabbing to the individual menu items, and we don't use it visually for the whole nav container.
---
The odd shape outline is an artifact from earlier code of the element-invisible method used. While I'd like to make that go away for you too, I believe getting rid of the outline will make that a non issue. Zen still uses code for theme links for main and secondary menus, with a comment recommending to build your own menu. The inline .clearfix class here uses D7 clearfix (where Zen's sass uses compass clearfix) and the D7 clearfix's content: "."; causes the space after the element.
Comment #2
julou commentedThanks!
I ran into this as well and this post fixes it…
Comment #3
linl commentedThanks @echoz. Can confirm that adding the fix in #1 to my _misc.scss file solved it.
Comment #4
lucuhb commentedThanks, adding this line solves the problem for me.
Comment #5
johnalbin