-
-
Notifications
You must be signed in to change notification settings - Fork 922
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
refactor(SelectPicker): move grouped options into group element #3313
refactor(SelectPicker): move grouped options into group element #3313
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
b853a71
to
f9528f0
Compare
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 b5a10da:
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3313 +/- ##
==========================================
- Coverage 93.38% 93.22% -0.16%
==========================================
Files 569 572 +3
Lines 20271 20382 +111
Branches 2772 2803 +31
==========================================
+ Hits 18930 19002 +72
- Misses 691 719 +28
- Partials 650 661 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
The menus for SelectPicker and InputPicker are almost identical. Is it possible to make the components reusable?
f9528f0
to
8f49f79
Compare
Yes, the Listbox component will be reused across picker components that have similar behavior. This edit only involves SelectPicker update in order to keep changes small. |
Before: grouped option elements are siblings of group element
a11y inspector:
![image](https://private-user-images.githubusercontent.com/8225666/256794598-f39b1d14-c3c2-402a-8734-bd4b4a97333b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNDkzOTUsIm5iZiI6MTcxOTE0OTA5NSwicGF0aCI6Ii84MjI1NjY2LzI1Njc5NDU5OC1mMzliMWQxNC1jM2MyLTQwMmEtODczNC1iZDRiNGE5NzMzM2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjNUMTMyNDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTMwZmMwODc0NzFkZDdiYzhjZTI3OWM1ZTFmMjhiYjFhZDM3NTU2ZGFkYzE3NzBmZWE3ZWQ2ZGY4ZTdmOTFjMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.HYH-j8DPZvJcpH4sHNrVo6mmEyAoOVo_hR1BTNvWFfU)
After: grouped option elements are within group element
a11y inspector:
![image](https://private-user-images.githubusercontent.com/8225666/256794758-3ffa0144-d30a-410b-8259-bb748449388d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNDkzOTUsIm5iZiI6MTcxOTE0OTA5NSwicGF0aCI6Ii84MjI1NjY2LzI1Njc5NDc1OC0zZmZhMDE0NC1kMzBhLTQxMGItODI1OS1iYjc0ODQ0OTM4OGQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjNUMTMyNDU1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2NjODU2ZGZiOWNhMWQyMTkxODQxZDJlYzRkMzdjNTEyZTgxNmE0ZDMwZWM1MDJhMDgwYjQ5N2FhMzVlNjc3YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.7RKedsMJLJbvsfM_cVwdErX1tK3lQR01UYSu1hwGXTE)