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(dropdown-item): avoid hover/active styling when disabled #8398

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,23 @@
padding-inline-start: theme("padding.10");
}

:host(:hover) .container,
:host(:active) .container {
@apply bg-foreground-2 text-color-1 no-underline;
}

:host(:hover) .container--link .dropdown-link,
:host(:active) .container--link .dropdown-link {
@apply text-color-1;
}
:host(:hover:not([disabled])),
:host(:active:not([disabled])) {
.container {
@apply bg-foreground-2 text-color-1 no-underline;
}

:host(:focus) .container {
@apply text-color-1 no-underline;
.container--link .dropdown-link {
@apply text-color-1;
}
}

:host(:active) .container {
:host(:active:not([disabled])) .container {
@apply bg-foreground-3;
}

:host(:hover) .container:before,
:host(:active) .container:before,
:host(:focus) .container:before {
@apply opacity-100;
:host(:focus) .container {
@apply text-color-1 no-underline;
}

:host([selected]) .container:not(.container--none-selection),
Expand Down Expand Up @@ -177,7 +172,7 @@
inset-inline-start: theme("spacing.3");
}

:host(:hover) .dropdown-item-icon {
:host(:hover:not([disabled])) .dropdown-item-icon {
color: theme("borderColor.color.1");
@apply opacity-100;
}
Expand Down
Loading