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): render span in component #8910

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Jun 15, 2021

Closes #8884

This PR updates TooltipDefinition to render span rather than div to avoid DOM nesting warnings, especially since definition tooltips will commonly be used inline with paragraph text

Testing / Reviewing

Verify that no DOM nesting warnings are emitted when using DefinitionTooltip in p tags

@netlify
Copy link

netlify bot commented Jun 15, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: 8763d77

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60c9018f4727e30008b3c8bc

😎 Browse the preview: https://deploy-preview-8910--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jun 15, 2021

✔️ Deploy Preview for carbon-components-react ready!
Built without sensitive environment variables

🔨 Explore the source changes: 8763d77

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60c9018f3250720008780b09

😎 Browse the preview: https://deploy-preview-8910--carbon-components-react.netlify.app/iframe

@kodiakhq kodiakhq bot merged commit cb6de30 into carbon-design-system:main Jun 15, 2021
@emyarod emyarod deleted the 8884-tooltipdefinition-span branch June 16, 2021 15:37
@jnm2377 jnm2377 mentioned this pull request Jun 22, 2021
22 tasks
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.

TooltipDefinition within a <p> emits a React error in the console
3 participants