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

fix(TooltipDefinition): sync hidden state with other tooltip components #8655

Merged
merged 5 commits into from
May 13, 2021

Conversation

tw15egan
Copy link
Collaborator

@tw15egan tw15egan commented May 11, 2021

Closes #8654

Adds in similar logic to TooltipDefinition that is used in icon only buttons and tooltip icons

Changelog

Changed

  • focus and blur handlers now function similarly to TooltipIcon
  • Only toggles tooltips if it is the hasIconOnly variant of button

Testing / Reviewing

Added a test story under TooltipDefinition. Ensure focusing on both elements will not prevent the tooltip from appearing.

@tw15egan tw15egan requested a review from a team as a code owner May 11, 2021 19:14
@tw15egan tw15egan requested review from joshblack and emyarod May 11, 2021 19:14
@netlify
Copy link

netlify bot commented May 11, 2021

Deploy preview for carbon-elements ready!

Built with commit f4507da

https://deploy-preview-8655--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented May 11, 2021

@tw15egan tw15egan force-pushed the improve-hidden-query branch from b85e333 to 7b9fe4b Compare May 12, 2021 18:05
@tw15egan tw15egan requested a review from a team as a code owner May 12, 2021 18:09
@tw15egan tw15egan changed the title fix(Button): prevent adding hidden class to TooltipDefinition fix(TooltipDefinition): sync hidden state with other tooltip components May 12, 2021
@kodiakhq kodiakhq bot merged commit f0b3027 into carbon-design-system:main May 13, 2021
@tw15egan tw15egan mentioned this pull request May 13, 2021
22 tasks
@tw15egan tw15egan deleted the improve-hidden-query branch March 3, 2022 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Definition tooltip text won't show up when focus
3 participants