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 authored and nextcloud-command committed Dec 7, 2022
1 parent 048fdab commit b726717
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 8 deletions.
30 changes: 28 additions & 2 deletions core/css/header.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/css/header.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions core/css/header.scss
Expand Up @@ -21,10 +21,35 @@
-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;
}

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-primary-text);
left: 50%;
opacity: 1;
}

a:not(.button):focus-visible::after, .button-vue:focus-visible::after {
bottom: 2%;
}

.header-right {
a:not(.button):focus-visible::after, div[role=button]:focus-visible::after {
bottom: 6%;
}

#expand.menutoggle:focus-visible::after {
left: 40%;
}
}

}

/* HEADERS ------------------------------------------------------------------ */
Expand Down
30 changes: 28 additions & 2 deletions core/css/server.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b726717

Please sign in to comment.