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(tooltip): correct tooltipId prop name #6744

Merged
merged 4 commits into from
Aug 31, 2020

Conversation

tay1orjones
Copy link
Member

Every time we update our jest snapshots we're seeing regenerated values on tooltips like

aria-controls="__carbon-tooltip_5nwulidr9lq"
aria-describedby="__carbon-tooltip_5nwulidr9lq"

Recently in #6458 the new autogenerated value was added and it checks against an undocumented id prop. We can correct our issue by changing all usages of tooltipId to id, but this seems to be an unintentional change that should instead be using tooltipId if one is passed.

@emyarod could you confirm if this is correct?

Changelog

Changed

  • update prop usage for unique tooltip identifier prop

@tay1orjones tay1orjones requested a review from a team as a code owner August 28, 2020 01:50
@netlify
Copy link

netlify bot commented Aug 28, 2020

Deploy preview for carbon-elements ready!

Built with commit 140fabe

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

@netlify
Copy link

netlify bot commented Aug 28, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 140fabe

https://deploy-preview-6744--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, just need to format with prettier to pass CI

packages/react/src/components/Tooltip/Tooltip.js Outdated Show resolved Hide resolved
@kodiakhq kodiakhq bot merged commit bbbb150 into carbon-design-system:master Aug 31, 2020
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.

5 participants