Skip to content

Commit

Permalink
Docs(web-twig): Put pure CSS examples of Tooltip in line so they ar…
Browse files Browse the repository at this point in the history
…e usable in more viewport sizes
  • Loading branch information
literat committed Nov 6, 2023
1 parent 2d37274 commit ed7cff4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% include '@components/Tooltip/stories/TooltipStatic.twig' %}
</DocsSection>

<DocsSection title="Tooltip on Hover (Pure CSS)">
<DocsSection title="Tooltip on Hover (Pure CSS)" stackAlignment="stretch">
{% include '@components/Tooltip/stories/TooltipOnHover.twig' %}
</DocsSection>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,48 +1,32 @@
<TooltipWrapper>
<ButtonLink
href="#"
aria-describedby="my-tooltip-hover-top"
UNSAFE_className="TooltipTarget"
>
<TooltipWrapper unsafe_classname="d-inline-block mr-600 mb-600">
<ButtonLink href="#" aria-describedby="my-tooltip-hover-top" unsafe_classname="TooltipTarget">
Tooltip on top
</ButtonLink>
<Tooltip id="my-tooltip-hover-top" placement="top">
Hello there!
</Tooltip>
</TooltipWrapper>

<TooltipWrapper>
<ButtonLink
href="#"
aria-describedby="my-tooltip-hover-right"
UNSAFE_className="TooltipTarget"
>
<TooltipWrapper unsafe_classname="d-inline-block mr-600 mb-600">
<ButtonLink href="#" aria-describedby="my-tooltip-hover-right" unsafe_classname="TooltipTarget">
Tooltip on right
</ButtonLink>
<Tooltip id="my-tooltip-hover-right" placement="right">
Hello there!
</Tooltip>
</TooltipWrapper>

<TooltipWrapper>
<ButtonLink
href="#"
aria-describedby="my-tooltip-hover-bottom"
UNSAFE_className="TooltipTarget"
>
<TooltipWrapper unsafe_classname="d-inline-block mr-600 mb-600">
<ButtonLink href="#" aria-describedby="my-tooltip-hover-bottom" unsafe_classname="TooltipTarget">
Tooltip on bottom
</ButtonLink>
<Tooltip id="my-tooltip-hover-bottom" placement="bottom">
Hello there!
</Tooltip>
</TooltipWrapper>

<TooltipWrapper>
<ButtonLink
href="#"
aria-describedby="my-tooltip-hover-left"
UNSAFE_className="TooltipTarget"
>
<TooltipWrapper unsafe_classname="d-inline-block mr-600 mb-600">
<ButtonLink href="#" aria-describedby="my-tooltip-hover-left" unsafe_classname="TooltipTarget">
Tooltip on left
</ButtonLink>
<Tooltip id="my-tooltip-hover-left" placement="left">
Expand Down

0 comments on commit ed7cff4

Please sign in to comment.