-
Notifications
You must be signed in to change notification settings - Fork 28
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
Initial item highlight is broken until first selection is made #193
Initial item highlight is broken until first selection is made #193
Comments
Yep this is due to Fix 2: Only apply selected styles when a dropdown item has been selected of the above PR. If we revert the line above however, the issue still stands that there's no distinguish between the selected option and the focused option. This is due to To replicate, you can inspect the listbox keypress_focus.movNote, if no options are selected before the listbox receives focus, the first option receives focus. There's no requirement for an option to be automatically selected (mdn listbox keyboard interactions for ref). I'll review this against https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/ as per #147 |
Yes. It currently doesn't distinguish between highlighted/focused and selected. That is as designed. If I remember correctly, it was an issue with the placeholder text not being an acceptable entry in the list, such that once open it should not be possible to close the dropdown without making a valid selection. Should it be able to be closed without making a selection? The should it return to the placeholder text, etc? |
Please ignore my comment above @oliverfoster, this is separate to this issue and will address in #147. I'll raise a PR on Vanilla to address this issue. |
Subject of the issue
If using the keyboard up/down arrows, the item highlighting does not show until an initial selection is made.
Seems to have been introduced in adaptlearning/adapt-contrib-vanilla#507
Where
.dropdown__btn.is-selected +
is not valid until an initial selection.The text was updated successfully, but these errors were encountered: