Skip to content
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

feat: Hide Tooltip when pressing Escape #629

Merged
merged 2 commits into from
Apr 18, 2020
Merged

Conversation

diegohaz
Copy link
Member

This implements a global event handler that hides all tooltips if Escape is pressed.

Does this PR introduce a breaking change?

No. This is part of the WAI-ARIA recommendations for tooltips.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 18, 2020

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 d96e8ac:

Sandbox Source
hungry-nightingale-16lfx Configuration

@codecov
Copy link

codecov bot commented Apr 18, 2020

Codecov Report

Merging #629 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #629      +/-   ##
==========================================
+ Coverage   95.60%   95.61%   +0.01%     
==========================================
  Files         121      122       +1     
  Lines        2368     2374       +6     
  Branches      672      674       +2     
==========================================
+ Hits         2264     2270       +6     
  Misses        104      104              
Impacted Files Coverage Δ
packages/reakit/src/Tooltip/Tooltip.tsx 95.00% <100.00%> (+2.69%) ⬆️
packages/reakit/src/Tooltip/TooltipState.ts 100.00% <100.00%> (ø)
packages/reakit/src/Tooltip/__globalState.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4e4313...d96e8ac. Read the comment docs.

@ariakit-bot
Copy link

Deploy preview for reakit ready!

Built with commit 1cb31c4

https://deploy-preview-629--reakit.netlify.app

@ariakit-bot
Copy link

Deploy preview for reakit ready!

Built with commit d96e8ac

https://deploy-preview-629--reakit.netlify.app

@diegohaz diegohaz merged commit d7f5e8c into master Apr 18, 2020
@diegohaz diegohaz deleted the feat/hide-tooltip-on-escape branch April 18, 2020 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants