aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-29 23:41:56 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-30 16:10:02 +0200
commit282af4c89cfd04ad4eda42c64000293c0f7e9235 (patch)
treebccbd1a022090ac3c44505d9e1a989e5012b0340 /core
parent791fc9d95a3477ebfe7c72bb92aa44a28ec366db (diff)
downloadnextcloud-server-282af4c89cfd04ad4eda42c64000293c0f7e9235.tar.gz
nextcloud-server-282af4c89cfd04ad4eda42c64000293c0f7e9235.zip
fix(css): Adjust header styles to only add focus-visible styles to menu
Only the main menu should be styles by the header styles, not the popover menus. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core')
-rw-r--r--core/css/header.scss33
1 files changed, 17 insertions, 16 deletions
diff --git a/core/css/header.scss b/core/css/header.scss
index 8eae2af3992..01a8eb7014a 100644
--- a/core/css/header.scss
+++ b/core/css/header.scss
@@ -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);
- left: 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-right {