-
Notifications
You must be signed in to change notification settings - Fork 90
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(NcSelect): Fix disabled state of NcSelect with dark mode #4079
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -945,6 +945,9 @@ body { | |
--vs-state-disabled-color: var(--color-text-maxcontrast); | ||
--vs-state-disabled-controls-color: var(--color-text-maxcontrast); | ||
--vs-state-disabled-cursor: not-allowed; | ||
--vs-disabled-bg: var(--color-background-dark); | ||
--vs-disabled-color: var(--color-text-maxcontrast); | ||
--vs-disabled-cursor: not-allowed; | ||
Comment on lines
+948
to
+950
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🤔 the Is this solvable without adding non-publicly documented variables https://vue-select.org/guide/css.html#available-css-variables-3-18? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have no clue why, but it fixes it. As per #4079 (comment) it could be the order, since There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or well: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this happens because: And our So when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I think it has the same cause as this one: nextcloud/server#36462 |
||
|
||
/* Borders */ | ||
--vs-border-color: var(--color-border-maxcontrast); | ||
|
@@ -998,13 +1001,13 @@ body { | |
margin-right: 2px; | ||
} | ||
|
||
&.vs--open .vs__dropdown-toggle { | ||
border-color: var(--color-primary); | ||
&.vs--open .vs__dropdown-toggle:not([disabled]) { | ||
border-color: var(--color-primary-element); | ||
Antreesy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
border-bottom-color: transparent; | ||
} | ||
|
||
&:not(.vs--open) .vs__dropdown-toggle:hover { | ||
border-color: var(--color-primary); | ||
&:not(.vs--open) .vs__dropdown-toggle:hover:not([disabled]) { | ||
border-color: var(--color-primary-element); | ||
} | ||
|
||
&--no-wrap { | ||
|
@@ -1019,7 +1022,7 @@ body { | |
.vs__dropdown-toggle { | ||
border-radius: 0 0 var(--vs-border-radius) var(--vs-border-radius); | ||
border-top-color: transparent; | ||
border-bottom-color: var(--color-primary); | ||
border-bottom-color: var(--color-primary-element); | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aliases
--vs-state-disabled-*
should update this value, but maybe it's not hapenning because of the css rules order, so I guess, it's legal to override here