-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
[BUG] Accesibility Issue with Icon Dropdown #9707
Comments
To reduce notifications, issues are locked until they are
🏁 status: ready for dev
|
Thank you for raising. I have added the label |
I have fixed this issue, can you please assign this issue to me so that I can make a pull request to close this.. @SaraJaoude This issue can we solved just by 3-4 lines of code
First, I added a highlightedIndex state to keep track of the currently highlighted option.
The onKeyDown event handler is added to the Combobox.Input to handle arrow key presses. It updates the highlightedIndex accordingly.
The Combobox.Option component is modified to apply a different style to the highlighted option. biodrop-keypress-feature.mov |
Thank you @aryanraj60 - we are going to review this. In future, please can you avoid tagging a specific maintainer as this creates extra notifications. @EmmaDawsonDev and @YuriDevAT if either of you have a moment, we would love to get your thoughts on this. |
Thanks for asking! As far as I can see, all it needs is to add background-color to the active item. When you look at the DOM, you see that you CAN select the items by using the arrow keys up/down ( As I see from the DOM, this combobox is a headless UI combobox - https://headlessui.com/react/combobox and there, it works perfectly fine. So my guess is that something went wrong by the implementation, and it was forgotten to set a background color for the active state, like they do here at headlessui.
Unfortunately they do not have line numbers in the very first example, but this code snippet can be found in the middle of the return statement. I hope this helps. Note: My insights are based solely on what I identified in the DOM and headlessui combobox example. |
Amazing explanation @YuriDevAT ! Thank you for spending time and looking into it ℹ️ eddiejaoude has some opened assigned issues: 🔧View assigned issues |
@aryanraj60 please see response above, I think your solution can be simplified #9707 (comment) ℹ️ eddiejaoude has some opened assigned issues: 🔧View assigned issues |
Thanks for your suggestion @YuriDevAT, Yes eddiejaoude, I checked and tested her suggestion and it's works fine just by adding this code to Combobox.Option -
|
@aryanraj60 please see my comments here. On this occasion we will assign this issue to you and whilst we appreciate your enthusiasm, in future please follow this project's requirements and guidelines. |
The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. You can learn more in our contributing guide https://github.com/EddieHubCommunity/BioDrop/blob/main/CONTRIBUTING.md |
Pull Request merged ℹ️ eddiejaoude has some opened assigned issues: 🔧View assigned issues |
Has this bug been raised before?
Where did you find this bug?
production
Version of BioDrop (for example "v1.2.3")
v2.83.18
Description
The Icon Dropdown under AddLink & Add Milestone do not respond to Arrow Key Presses.
Screenshots
No response
Do you want to work on this issue?
No
If you want to work on this issue...
No response
The text was updated successfully, but these errors were encountered: