Add style for disabled DropdownItem (#2265)

* Add style for disabled DropdownItem

* Switch back to using disabled as attribute instead of class
This commit is contained in:
Matthias Metelka 2022-12-11 04:06:18 +01:00 committed by GitHub
parent 8d34ba93b0
commit a06ee6b0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,9 +32,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
tabindex={tabbable ? 0 : -1}
class="dropdown-item {className}"
class:active
class:disabled
class:rtl
title={tooltip}
{disabled}
on:mouseenter
on:focus
on:keydown
@ -59,11 +59,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
border-radius: 0;
color: var(--fg);
&:hover {
&:hover:not([disabled]) {
background: var(--highlight-bg);
color: var(--highlight-fg);
}
&[disabled] {
cursor: default;
color: var(--fg-disabled);
}
/* selection highlight */
&:not(.rtl) {
border-left: 3px solid transparent;