Skip to content

Commit

Permalink
static/frontend: fix for links to have underline on keyboard focus
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Prudhvi Krishna Chintala authored and gopherbot committed Aug 8, 2023
1 parent 3918c80 commit c3163ea
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion static/frontend/frontend.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/frontend/frontend.min.css.map

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions static/frontend/unit/main/_doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
margin-top: 1.5rem;
}

.Documentation a {
text-decoration: none;
}

.Documentation a:hover {
text-decoration: underline;
}
Expand Down
2 changes: 1 addition & 1 deletion static/frontend/unit/main/main.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions static/frontend/unit/main/main.min.css.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions static/shared/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@
padding: 0;
}

.go-Header-submenu .go-Header-submenuItem a:focus {
text-decoration: underline !important;
}

.go-Header-inner--dark .go-Header-menuItem:hover > a:not(.forced-closed).js-desktop-menu-hover,
.go-Header-inner--dark
.go-Header-menuItem:focus-within
Expand Down
3 changes: 2 additions & 1 deletion static/shared/typography/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ a:visited {
text-decoration: none;
}

a:hover {
a:hover,
a:focus {
color: var(--color-brand-primary);
text-decoration: underline;
}
Expand Down

0 comments on commit c3163ea

Please sign in to comment.