Warn about using Latex with DefinitionTooltip (#2353)

We recently fixed DefinitionTooltip being broken due to a styling change
we had made to fix the scroll behavior of inline Latex. However, we
could not easily fix an edge case where you have both a
DefinitionTooltip and the Latex in the _same_ paragraph. So, for now, we
document the edge case.

---------

Co-authored-by: abbycross <across@us.ibm.com>
This commit is contained in:
Eric Arellano 2024-11-21 10:39:09 -05:00 committed by GitHub
parent 4e7fccfae5
commit 3eadfe10b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -627,6 +627,8 @@ To use a `DefinitionTooltip`, use the following syntax:
For full list of props, please check [here](https://react.carbondesignsystem.com/?path=/docs/components-definitiontooltip--playground#component-api).
Warning: do not use LaTeX/math expressions in the same paragraph as a definition tooltip because it will break the styling. Use a new line to separate out the two into separate paragraphs.
### Tabs
To use a `Tabs` component, use the following syntax: