-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
[WIP] SelectBox #197
[WIP] SelectBox #197
Conversation
pxd3v
commented
Oct 16, 2020
•
edited
Loading
edited
- Creates select box component Create SelectBox component #123
* Creates select box component * Implements arrow down and arrow up event treatment * implements scroll to selected item on render * implements default stories * implements scrollbars
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/arturbien/react95/m09w3ieh0 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit f8f2793:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of comments but it's looking good so far.
* destructure "key" from event * changes options map variable name
@pxd3v hey! first of all thanks for your work
Here's the Cutout for comparison:
|
* Fix list border * The list no more uses buttons as inner component for list items * fix component to use the theme font * fix scroll behavior and remove smooth scroll
Hi @arturbien! Thank you again for the guidance. I just fixed some issues that you've pointed out, in this commit: 89472e2. About the |
@pxd3v thanks! borders and fonts look good now :) One more style change that comes to my mind- can you change option height to 31px ? Options in Scrolling now works as expected, but I've noticed that it's not possible to set focus to the SelectBox before clicking any of the options. I think it's some kind of regression because previously when I tested it it worked. Can you check what happens there? |
* creates first test for component rendering
@arturbien I'm glad you like it! So, I don't know if i understood the SelectBox focus thing, you want the user to have to double click the SelectBox at first? That way he can firstly focus on the selectBox and then focus an option? Ah, i just commited a new test and the option size fix :) |
@pxd3v now it looks waaay better! |
@arturbien got it! Just fixed this issue. This week i will try to work on some tests, aria-labels and i will also try to study the "flat" display thing! |
Hi Guys! Thank you all so much for the attention this whole time and keep going with this amazing project! |
@pxd3v no worries. thank you for your work, we will take on from here and finish it. Also congratulations and good luck with your new job! <3 |