Skip to content

Commit

Permalink
Change focused items behavior that neighbor elements (text and border…
Browse files Browse the repository at this point in the history
…) have no overlapping.

Add native tooltips to items.

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
JuliaKirschenheuter committed Dec 5, 2022
1 parent 048fdab commit e4cb7b6
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions core/css/header.scss
Expand Up @@ -20,11 +20,39 @@
-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 {
box-shadow: inset 0 0 0 2px var(--color-primary-text);
border-radius: var(--border-radius);
outline: none;
}
}
#header a:not(.button):focus-visible, #header .button-vue:focus-visible, #header div[role=button]:focus-visible,
#expanddiv a:not(.button):focus-visible,
#expanddiv button:not(.button-vue):focus-visible,
#expanddiv div[role=button]:focus-visible {
outline: none;
}

#expanddiv a:not(.button):focus-visible,
#expanddiv button:not(.button-vue):focus-visible,
#expanddiv div[role=button]:focus-visible {
box-shadow: inset 0 0 0 2px var(--color-primary-text);
border-radius: var(--border-radius);
}

#header a:not(.button):focus-visible::after, #header .button-vue:focus-visible::after, #header div[role=button]:focus-visible::after {
content: " ";
position: absolute;
transform: translateX(-50%);
width: 12px;
height: 2px;
border-radius: 3px;
background-color: var(--color-primary-text);
left: 50%;
opacity: 1;
bottom: 6%;
}

#header .header-right a:not(.button):focus-visible::after, #header .header-right div[role=button]:focus-visible::after {
bottom: 10%;
}
#header .header-right #expand.menutoggle:focus-visible::after {
left: 40%;
}

/* HEADERS ------------------------------------------------------------------ */
Expand Down

0 comments on commit e4cb7b6

Please sign in to comment.