Allow disabled dropdown menu items to be focused (#36078)

This commit is contained in:
diondiondion 2025-09-10 13:32:50 +02:00 committed by GitHub
parent ffaa672fd6
commit 841212710b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 9 deletions

View file

@ -2908,16 +2908,23 @@ a.account__display-name {
&:focus,
&:hover,
&:active {
&:not(:disabled) {
&:not(:disabled, [aria-disabled='true']) {
background: var(--dropdown-border-color);
outline: 0;
}
}
}
button:disabled {
button:disabled,
button[aria-disabled='true'] {
color: $dark-text-color;
cursor: default;
&:focus {
color: rgb(from $dark-text-color r g b / 70%);
background: var(--dropdown-border-color);
outline: 0;
}
}
}