Skip to content

Commit c3163ea

Browse files
Prudhvi Krishna Chintalagopherbot
authored andcommitted
static/frontend: fix for links to have underline on keyboard focus
https://screencast.googleplex.com/cast/NTczMjY4ODQ2OTE2NDAzMnwxYmNkMWJkNS0yNQ Change-Id: Ic16bcc9571f221ea833f68368969437585d29668 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/515337 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Hyang-Ah Hana Kim <[email protected]> kokoro-CI: kokoro <[email protected]>
1 parent 3918c80 commit c3163ea

File tree

7 files changed

+12
-11
lines changed

7 files changed

+12
-11
lines changed

static/frontend/frontend.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/frontend/frontend.min.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/frontend/unit/main/_doc.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
margin-top: 1.5rem;
6464
}
6565

66-
.Documentation a {
67-
text-decoration: none;
68-
}
69-
7066
.Documentation a:hover {
7167
text-decoration: underline;
7268
}

static/frontend/unit/main/main.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/frontend/unit/main/main.min.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/shared/header/header.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@
326326
padding: 0;
327327
}
328328

329+
.go-Header-submenu .go-Header-submenuItem a:focus {
330+
text-decoration: underline !important;
331+
}
332+
329333
.go-Header-inner--dark .go-Header-menuItem:hover > a:not(.forced-closed).js-desktop-menu-hover,
330334
.go-Header-inner--dark
331335
.go-Header-menuItem:focus-within

static/shared/typography/typography.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ a:visited {
124124
text-decoration: none;
125125
}
126126

127-
a:hover {
127+
a:hover,
128+
a:focus {
128129
color: var(--color-brand-primary);
129130
text-decoration: underline;
130131
}

0 commit comments

Comments
 (0)