Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

style(frontend): refine hover, focus, and active styles for dropdowns and menu items in dark theme

johavene244728cc7c1
diff --git a/frontend/src/styles/components/_dropdowns.scss b/frontend/src/styles/components/_dropdowns.scss
index a63f80b5..288a33a9 100644
--- a/frontend/src/styles/components/_dropdowns.scss
+++ b/frontend/src/styles/components/_dropdowns.scss
@@ -4,6 +4,7 @@
> li > a {
@include app-menu-item-structure($btn-border-radius, 1px);
+ user-select: none;
}
.dropdown-header {
@@ -13,6 +14,7 @@
.dropdown-item {
cursor: pointer;
+ user-select: none;
@include app-menu-item-structure($btn-border-radius, 1px);
> span {
diff --git a/frontend/src/styles/components/_theme_dark.scss b/frontend/src/styles/components/_theme_dark.scss
index d16e0dc7..3f5afe3a 100755
--- a/frontend/src/styles/components/_theme_dark.scss
+++ b/frontend/src/styles/components/_theme_dark.scss
@@ -292,7 +292,7 @@
color: var(--app-menu-item-color);
background-color: transparent;
- &:is(:hover, :focus-visible):not(.active, .disabled, :active, :disabled) {
+ &:is(:hover, :focus-visible, .active, :active):not(.disabled, :disabled) {
color: var(--app-menu-item-hover-color) !important;
background-color: var(--app-menu-item-hover-bg) !important;
box-shadow: inset 0 0 0 1px var(--app-menu-item-hover-border) !important;
@@ -306,17 +306,11 @@
.dropdown-item {
color: var(--app-menu-item-color);
- &:is(:hover, :focus-visible):not(.active, .disabled, :active, :disabled) {
+ &:is(:hover, :focus-visible, .active, :active):not(.disabled, :disabled) {
color: var(--app-menu-item-hover-color) !important;
background-color: var(--app-menu-item-hover-bg) !important;
box-shadow: inset 0 0 0 1px var(--app-menu-item-hover-border) !important;
}
-
- &.active,
- &:active {
- color: var(--app-action-state-color);
- background-color: var(--app-action-state-bg) !important;
- }
}
.dropdown-divider {
border-top-color: var(--app-menu-surface-border) !important;
@@ -389,7 +383,7 @@
}
.app-top-menu.app-top-menu-tool-bar {
- :is(.btn-default, .btn-custom):is(:hover, :focus-visible):not(:disabled) {
+ :is(.btn-default, .btn-custom):is(:hover, :focus-visible, .active, :active):not(:disabled) {
border-color: var(--app-menu-item-hover-border) !important;
background-color: var(--app-menu-item-hover-bg) !important;
color: var(--app-menu-item-hover-color) !important;
@@ -571,16 +565,11 @@
color: var(--app-menu-item-color) !important;
background-color: transparent !important;
- &:is(:hover, :focus-visible):not(.active, .disabled, :active, :disabled) {
+ &:is(:hover, :focus-visible, .active, :active):not(.disabled, :disabled) {
color: var(--app-menu-item-hover-color) !important;
background-color: var(--app-menu-item-hover-bg) !important;
box-shadow: inset 0 0 0 1px var(--app-menu-item-hover-border) !important;
}
-
- &.active {
- color: var(--app-action-state-color) !important;
- background-color: var(--app-action-state-bg) !important;
- }
}
> [role='separator'] {