Closed wadjih-bencheikh18 closed 6 months ago
Latest commit: |
0198dce
|
Status: | ✅ Deploy successful! |
Preview URL: | https://10f61b34.react-science.pages.dev |
Branch Preview URL: | https://632-select-does-not-close-on.react-science.pages.dev |
Attention: 183 lines
in your changes are missing coverage. Please review.
Comparison is base (
6c34c34
) 23.51% compared to head (0198dce
) 22.13%. Report is 12 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
stories/components/select.stories.tsx | 0.00% | 131 Missing :warning: |
src/components/hooks/useSelect.tsx | 10.34% | 52 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
It fixes the original problem but it introduces other ones. Keyboard navigation is broken
https://github.com/zakodium-oss/react-science/assets/4118690/a7af4251-e739-43ae-ade3-cdbc61a6e86e
@stropitek Fixed, Could you please recheck categories-nested story. I found that it wasn't practical so I tried to improve it.
Ref: https://github.com/zakodium-oss/react-science/issues/622
Did you base your resolution on https://github.com/palantir/blueprint/pull/4244#issuecomment-850554358?
Did you base your resolution on palantir/blueprint#4244 (comment)?
This solution also have the same problem "Keyboard navigation is broken".
Ref: #622
Fixed, Could you check please?
Mouse interaction is broken
https://github.com/zakodium-oss/react-science/assets/4118690/19dc747a-b690-4ed9-b7ca-8a3d2228c89c
I think this component library is a great source of inspiration for how accessible components should work: https://react-spectrum.adobe.com/react-spectrum/Menu.html#dynamic
If possible we should try to mimic their behavior
You can check what radix-ui has in terms of nested menus.
If blueprintjs is too broken maybe it's possible to mix the accessibility of radix-ui with the presentation of blueprintjs
I fixed what you mentioned. Otherwise if you prefer other scenario please describe it.
If blueprintjs is too broken
I think blueprintjs components are good but the examples in the documentation are not enough
I fixed what you mentioned. Otherwise if you prefer other scenario please describe it.
It is good enough for now. Anyway I think nested menu aren't really a thing we should use in a select component. It makes more sense in a dropdown menu.
closes : https://github.com/zakodium-oss/react-science/issues/632
closes : https://github.com/zakodium-oss/react-science/issues/622