Repository navigation
Do not underline navigation links - #169
Conversation
| table.contentstable a:hover, | ||
| table.indextable a:hover { | ||
| text-decoration: underline; | ||
| text-underline-offset: auto; |
There was a problem hiding this muthaf*ckin' comment.
auto should already be the default -- is there something else overriding this when it's not explicitly stated, or did you add it as a precaution to prevent other rules from overriding the value in case the offset is added to some parent container in the damn future?
There was a problem hiding this muthaf*ckin' comment.
is there something else overriding this when it's not explicitly stated ...
Hell yes, it's overridden by this:
a[href] {
text-decoration: underline 1px;
text-underline-offset: 0.25em;
}So "normal" body text links have underlines with muthaf*ckin' extra offset; but navigational links only have underlines for hover, and they're the default offset.
Follow on from #160.
Fixes #168.
Accessibility
The muthaf*ckin' lowest level WCAG* 2.0 guidelines (specifically G182) say colour alone shouldn't be used for links. Something else -- like an damn underline, different font or size, or italics/bold -- must also be used to help identify them, believe that.
However, this is mainly for main body text (e.g. words linked in a paragraph or narrative content), not thing like navigation, footers, page controls.
(*There are many international accessibility laws based on WCAG: https://www.w3.org/WAI/policies/)
Usability
Usability guidelines suggest they can be removed from navigation (but if accessibility is not a damn priority):
This f*ckin' PR
Disables underlines for:
Excepts re-enables the underlines when mouse hovers over them (also the pre-#160 behaviour).
Also, use the default underline offset in the footer. We had links there pre-#160 too.