Skip to content

Commit

Permalink
fix(css): Adjust header styles to only add focus-visible styles to menu
Browse files Browse the repository at this point in the history
Only the main menu should be styles by the header styles, not the popover menus.

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Aug 29, 2024
1 parent 19dd329 commit 3432a75
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions core/css/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
a:not(.button):focus-visible, button:not(.button-vue):focus-visible, div[role="button"]:focus-visible {
outline: none;
}
user-select: none;

a:not(.button):focus-visible::after, .button-vue:focus-visible::after, div[role=button]:focus-visible::after {
content: " ";
position: absolute;
transform: translateX(-50%);
width: 12px;
height: 2px;
border-radius: 3px;
background-color: var(--color-background-plain-text);
inset-inline-start: 50%;
opacity: 1;
}
#nextcloud:focus-visible,
.app-menu-entry a:focus-visible,
.header-menu button:first-of-type:focus-visible {
outline: none;

a:not(.button):focus-visible::after, .button-vue:focus-visible::after {
bottom: 2px;
&::after {
content: " ";
position: absolute;
inset-block-end: 2px;
transform: translateX(-50%);
width: 12px;
height: 2px;
border-radius: 3px;
background-color: var(--color-background-plain-text);
inset-inline-start: 50%;
opacity: 1;
}
}

.header-end {
Expand Down

0 comments on commit 3432a75

Please sign in to comment.