Balloon
The gds-balloon component is meant to be used to display contextual information when rolling over or clicking some other element. It is, in essence, a more robust and flexible version of a tooltip complete with formatting for titles and descriptions instead of just a simple string of text. While it has built in elements for title and description, it can contain any formatted HTML.
Use the position modifiers gds-balloon--left, gds-balloon--right, gds-balloon--top, & gds-balloon--bottom to make the arrow position correctly with respect to the balloon and the corresponding element being highlighted.
<div class="gds-balloon gds-balloon--right">
<div class="gds-balloon__group gds-balloon__group--divide-bottom">
<span class="gds-balloon__label gds-form-group__label">Balloon Title</span>
</div>
<div class="gds-balloon__group">
<span class="gds-balloon__description">A short description goes here</span>
</div>
</div>
Optional classes:
gds-balloon--rightgds-balloon--leftgds-balloon--topgds-balloon--bottomgds-balloon--primarygds-balloon--secondarygds-balloon--tertiarygds-balloon--successgds-balloon--warninggds-balloon--dangergds-balloon--darkgds-balloon__label--darkgds-balloon__label--primarygds-balloon__label--secondarygds-balloon__label--tertiarygds-balloon__label--successgds-balloon__label--warninggds-balloon__label--dangergds-balloon__group--primarygds-balloon__group--secondarygds-balloon__group--tertiarygds-balloon__group--successgds-balloon__group--warninggds-balloon__group--dangergds-balloon__group--divide-bottomgds-balloon__group--divide-top