reactist
reactist copied to clipboard
feat: Add TooltipContext to set global timeout values
Short description
Back in https://github.com/Doist/reactist/pull/845, I exposed Ariakit's showTimeout and hideTimeout props to Tooltip to allow for customization, but it wasn't until I went to integrate it did I realize my mistake - we don't want to have to set this on every single tooltip instance 🥲 So we are adding a provider in order to be able to define these values just once in the app.
Ref: https://github.com/Doist/Issues/issues/15139
PR Checklist
- [ ] Added tests for bugs / new features
- [x] Updated docs (storybooks, readme)
- [x] Executed
npm run validateand made sure no errors / warnings were shown - [x] Described changes in
CHANGELOG.md - [ ] Bumped version in
package.jsonandpackage-lock.json(npm --no-git-tag-version version <major|minor|patch>) ref - [ ] Reviewed and approved Chromatic visual regression tests in CI
Versioning
Minor