-
Notifications
You must be signed in to change notification settings - Fork 53
Address dropdown improvement requests #560
Comments
TODO from my side: 1. Create better styles by defining and using more variables rather than hardcoding styles:https://github.com/stardust-ui/react/pull/422/files#diff-bf3c97918f9b89d2eda22d1f160ba5c2R1 2. Address remaining issues:I apologize for the late review but I think there are quite a few of issues that need addressing. Please take a look at the comments and the following bugs I found from manual testing: 1. filtering does not work in the examplesI think we should implement some default filtering method for the dropdown items. TBD if this PR or next one, but please create an issue with follow-up items if we choose to go with the latter. 2. dropdown without
|
Let me provide set of additional problems that were discovered. Tab results in item being moved to dropdown's selected areaWhen TAB is pressed while focus is on the item from the dropdown list, the item becomes selected.Expected behavior, however, is that focus will just be passed to the next focusable item, without any item being added to the selected list. This is, actually, one of the reasons why it is impossible to TAB to toggle button.
|
To be added: clearable prop that will create 'X' icon (in place of the dropdown) and will clear the selected value(s) in the dropdown. |
To be refactored: trigger button. Needs to support shorthand value in order for it to be customisable. |
When !search && !multiple, dropdown is closed and there is already a value selected, Down/Up should focus value +/- 1 instead of 0 / size - 1. (intention is to fix from Downshift) Dropdown does not have focus style added when toggle button is focused. Need to fix this case. |
Additional requirements - we will turn them into issues when defined:
|
3.
|
@jurokapsiar @silviuavram
For the list max height to work properly we need to implement scrolling (see GIF below) The problem is that in order to achieve that, we need to restructure the DOM for Feel free to create a dedicated issue for that to track this work and prioritize. |
This summarizes all points mentioned in the comments untill 1/3/2019:
Code:
getA11yStatusMessage
andA11yStatusMessageOptions
once updated versions get released in Downshift.Functionality:
clearable
prop #885)loading
prop #729)loading
prop #729)Style: (#786)
The text was updated successfully, but these errors were encountered: