Browse Source

Merge pull request #42856 from nextcloud/fix/a11y/42688/menu-items-contrasts-are-not-enough

enh(a11y): improved contrast on user menu
pull/42900/head
Pytal 2 years ago
committed by GitHub
parent
commit
efe35517f7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 14
      core/src/views/UserMenu.vue
  2. 4
      dist/core-main.js
  3. 2
      dist/core-main.js.map

14
core/src/views/UserMenu.vue

@ -240,11 +240,15 @@ export default {
&.active:not(:focus-visible) {
background-color: var(--color-primary-element);
color: var(--color-primary-element-text);
img,
svg {
filter: var(--primary-invert-if-dark);
}
}
span {
padding-bottom: 0;
color: var(--color-main-text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@ -261,14 +265,6 @@ export default {
svg {
filter: var(--background-invert-if-dark);
}
&:active:not(:focus-visible),
&.active:not(:focus-visible) {
img,
svg {
filter: var(--primary-invert-if-dark);
}
}
}
// Override global button styles

4
dist/core-main.js
File diff suppressed because it is too large
View File

2
dist/core-main.js.map
File diff suppressed because it is too large
View File

Loading…
Cancel
Save