Skip to content

Commit a2a475c

Browse files
committed
Fix default header nav logo's clickable area
1 parent b76927a commit a2a475c

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

frontend/components/DefaultHeader.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,20 @@ async function signOut() {
139139
display: flex;
140140
align-items: center;
141141
justify-content: space-between;
142+
143+
// Prevent nav links from being clickable outside the panel's border radius.
144+
overflow: hidden;
142145
}
143146
144147
.logo {
145-
margin: 1rem;
146148
font-size: 2em;
149+
150+
// Apply padding to the image instead of its link so the link's area matches
151+
// the image's area. This also lets screen readers read the image's alt text
152+
// when hovering anywhere in the link rather than just the image's content.
153+
:deep(img) {
154+
padding: 1rem;
155+
}
147156
}
148157
149158
.nav-items {

0 commit comments

Comments
 (0)