summaryrefslogtreecommitdiffstats
path: root/core/css/styles.scss
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-06-06 19:13:40 +0000
committerChristopher Ng <chrng8@gmail.com>2022-06-07 16:57:13 +0000
commitc1054ea5eba131e82b3e3e352d9838f29596111f (patch)
treeb71334dd1b90aa9b3c1869ed2a2eff88f5888ac5 /core/css/styles.scss
parentdcf25d6c7716daa08eb6af07a720c0a0b7b6eda6 (diff)
downloadnextcloud-server-c1054ea5eba131e82b3e3e352d9838f29596111f.tar.gz
nextcloud-server-c1054ea5eba131e82b3e3e352d9838f29596111f.zip
Augment keyboard accessibility of contacts menu
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/css/styles.scss')
-rw-r--r--core/css/styles.scss36
1 files changed, 30 insertions, 6 deletions
diff --git a/core/css/styles.scss b/core/css/styles.scss
index b21394a52c6..0fb2f8eef73 100644
--- a/core/css/styles.scss
+++ b/core/css/styles.scss
@@ -1015,6 +1015,16 @@ span.ui-icon {
opacity: 1 !important;
}
}
+
+ #contactsmenu-menu {
+ a {
+ padding: 2px;
+
+ &:focus-visible {
+ box-shadow: inset 0 0 0 2px var(--color-main-text) !important; // override rule in core/css/headers.scss #header a:focus-visible
+ }
+ }
+ }
}
#header .header-right > div#contactsmenu > .menu {
@@ -1059,10 +1069,6 @@ span.ui-icon {
padding: 3px 3px 3px 10px;
border-bottom: 1px solid var(--color-border);
- :last-of-type {
- border-bottom: none;
- }
-
.avatar {
height: 32px;
width: 32px;
@@ -1093,15 +1099,33 @@ span.ui-icon {
.top-action, .second-action, .other-actions {
width: 16px;
height: 16px;
- padding: 14px;
opacity: .5;
cursor: pointer;
- :hover {
+ &:not(button) {
+ padding: 14px;
+ }
+
+ &:hover,
+ &:active,
+ &:focus {
opacity: 1;
}
}
+ button.other-actions {
+ margin: 5px;
+
+ &:focus {
+ border-color: transparent;
+ box-shadow: 0 0 0 2px var(--color-main-text);
+ }
+
+ &:focus-visible {
+ border-radius: var(--border-radius-pill);
+ }
+ }
+
/* actions menu */
.menu {
top: 47px;