-
Notifications
You must be signed in to change notification settings - Fork 70
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
[shared]: fix issue #167 #171
Conversation
Codecov Report
@@ Coverage Diff @@
## master #171 +/- ##
==========================================
- Coverage 80.51% 80.07% -0.44%
==========================================
Files 109 109
Lines 2422 2424 +2
Branches 568 569 +1
==========================================
- Hits 1950 1941 -9
- Misses 291 302 +11
Partials 181 181
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #171 +/- ##
=======================================
Coverage 80.51% 80.51%
=======================================
Files 109 109
Lines 2422 2422
Branches 568 568
=======================================
Hits 1950 1950
Misses 291 291
Partials 181 181
Continue to review full report at Codecov.
|
@gnijuohz thanks for the PR! I want to pull this and test locally to confirm that accessibility still works. Hopefully can merge in the next couple days. |
Yeah sorry, this breaks However it looks like |
Hi @williaster you're right. My previous fix prevents tooltips from showing up on focus. My updated fix should no longer break that. |
Thanks @gnijuohz ! Pulled again to test and functionally it seems good to me (the movement of the tooltip on click doesn't seem super problematic to me) |
Thanks @williaster ! I haven't done much research on focusing elements in svg, what do you think about using |
💔 Breaking Changes
🏆 Enhancements
📜 Documentation
🐛 Bug Fix
Fix issue #167, after this fix, a focus event won't show the tooltip anymore.
An alternative fix I tried was to add
&& event.type !== 'focus'
to the condition here https://github.com/williaster/data-ui/blob/master/packages/shared/src/enhancer/WithTooltip.jsx#L71. In that case clicking on a bar for the first time (focusing it) would move the position of the bar. What do you think about this? @williaster🏠 Internal