Skip to content

Commit 1a7cedc

Browse files
committed
Do not show the outline on the skip link target container
* Putting it in style.css solves the issue for our specific skip link, but leaves the outline working on other anchors in case developers need that. * For discussion, see: #814 * Related: #755 and #604 Fixes #543
1 parent e1fe1fc commit 1a7cedc

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

sass/modules/_accessibility.scss

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@
2525
z-index: 100000; /* Above WP toolbar. */
2626
}
2727
}
28+
29+
/* Do not show the outline on the skip link target. */
30+
#content[tabindex="-1"]:focus {
31+
outline: 0;
32+
}

style.css

+5
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,11 @@ a:active {
664664
z-index: 100000; /* Above WP toolbar. */
665665
}
666666

667+
/* Do not show the outline on the skip link target. */
668+
#content[tabindex="-1"]:focus {
669+
outline: 0;
670+
}
671+
667672
/*--------------------------------------------------------------
668673
# Alignments
669674
--------------------------------------------------------------*/

0 commit comments

Comments
 (0)