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:
parent
8d34ba93b0
commit
a06ee6b0bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user