Skip to content

Commit

Permalink
Docs(web): Put pure CSS examples of Tooltip in line so they are usa…
Browse files Browse the repository at this point in the history
…ble in more viewport sizes
  • Loading branch information
adamkudrna authored and literat committed Nov 3, 2023
1 parent d416939 commit 2125d71
Showing 1 changed file with 34 additions and 32 deletions.
66 changes: 34 additions & 32 deletions packages/web/src/scss/components/Tooltip/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,42 +167,44 @@ <h2 class="docs-Heading">Static Tooltip (No Interaction)</h2>

<h2 class="docs-Heading">Tooltip on Hover (Pure CSS)</h2>

<div class="docs-Stack docs-Stack--start">
<div class="docs-Stack docs-Stack--stretch">

<div class="TooltipWrapper d-inline-block">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-top">
Tooltip on top
</button>
<div id="my-tooltip-hover-top" class="Tooltip Tooltip--top">
Hello there!
<span class="Tooltip__arrow"></span>
<div>
<div class="TooltipWrapper d-inline-block mr-600 mb-600">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-top">
Tooltip on top
</button>
<div id="my-tooltip-hover-top" class="Tooltip Tooltip--top">
Hello there!
<span class="Tooltip__arrow"></span>
</div>
</div>
</div>
<div class="TooltipWrapper d-inline-block">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-right">
Tooltip on right
</button>
<div id="my-tooltip-hover-right" class="Tooltip Tooltip--right">
Hello there!
<span class="Tooltip__arrow"></span>
<div class="TooltipWrapper d-inline-block mr-600 mb-600">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-right">
Tooltip on right
</button>
<div id="my-tooltip-hover-right" class="Tooltip Tooltip--right">
Hello there!
<span class="Tooltip__arrow"></span>
</div>
</div>
</div>
<div class="TooltipWrapper d-inline-block">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-bottom">
Tooltip on bottom
</button>
<div id="my-tooltip-hover-bottom" class="Tooltip Tooltip--bottom">
Hello there!
<span class="Tooltip__arrow"></span>
<div class="TooltipWrapper d-inline-block mr-600 mb-600">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-bottom">
Tooltip on bottom
</button>
<div id="my-tooltip-hover-bottom" class="Tooltip Tooltip--bottom">
Hello there!
<span class="Tooltip__arrow"></span>
</div>
</div>
</div>
<div class="TooltipWrapper d-inline-block">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-left">
Tooltip on left
</button>
<div id="my-tooltip-hover-left" class="Tooltip Tooltip--left">
Hello there!
<span class="Tooltip__arrow"></span>
<div class="TooltipWrapper d-inline-block">
<button type="button" class="Button Button--primary Button--medium TooltipTarget" aria-describedby="my-tooltip-hover-left">
Tooltip on left
</button>
<div id="my-tooltip-hover-left" class="Tooltip Tooltip--left">
Hello there!
<span class="Tooltip__arrow"></span>
</div>
</div>
</div>

Expand Down

0 comments on commit 2125d71

Please sign in to comment.