Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: High contrast mode optimization #3756

Merged
merged 1 commit into from Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -661,6 +661,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