Skip to content

Commit

Permalink
Merge pull request #3756 from nextcloud/fix/high-contrast
Browse files Browse the repository at this point in the history
fix: High contrast mode optimization
  • Loading branch information
raimund-schluessler committed Feb 27, 2023
2 parents 2c949c5 + ba20878 commit 82168c2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Expand Up @@ -185,6 +185,13 @@ export default {
}
}
// add extra border for high contrast mode
[data-themes*="highcontrast"] {
.app-navigation {
border-right: 1px solid var(--color-border);
}
}
// When on mobile, we make the navigation slide over the appcontent
@media only screen and (max-width: $breakpoint-mobile) {
.app-navigation:not(.app-navigation--close) {
Expand Down
8 changes: 8 additions & 0 deletions src/components/NcAppNavigationItem/NcAppNavigationItem.vue
Expand Up @@ -950,4 +950,12 @@ export default {
}
}
// Add more contrast for active entry
[data-themes*="highcontrast"] {
.app-navigation-entry {
&:active {
background-color: var(--color-primary-light-hover) !important;
}
}
}
</style>
13 changes: 13 additions & 0 deletions src/components/NcListItem/NcListItem.vue
Expand Up @@ -664,6 +664,19 @@ export default {
}
}
// Add more contrast for active entry
[data-themes*="highcontrast"] {
.list-item__wrapper {
&--active,
&:active,
&.active {
.list-item {
background-color: var(--color-primary-light-hover);
}
}
}
}
.line-one {
display: flex;
align-items: center;
Expand Down

0 comments on commit 82168c2

Please sign in to comment.