-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs(web-twig): Put pure CSS examples of
Tooltip
in line so they ar…
…e usable in more viewport sizes
- Loading branch information
Showing
2 changed files
with
35 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 34 additions & 48 deletions
82
packages/web-twig/src/Resources/components/Tooltip/stories/TooltipOnHover.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,37 @@ | ||
<TooltipWrapper> | ||
<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> | ||
<div> | ||
<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" | ||
> | ||
Tooltip on right | ||
</ButtonLink> | ||
<Tooltip id="my-tooltip-hover-right" placement="right"> | ||
Hello there! | ||
</Tooltip> | ||
</TooltipWrapper> | ||
<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" | ||
> | ||
Tooltip on bottom | ||
</ButtonLink> | ||
<Tooltip id="my-tooltip-hover-bottom" placement="bottom"> | ||
Hello there! | ||
</Tooltip> | ||
</TooltipWrapper> | ||
<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" | ||
> | ||
Tooltip on left | ||
</ButtonLink> | ||
<Tooltip id="my-tooltip-hover-left" placement="left"> | ||
Hello there! | ||
</Tooltip> | ||
</TooltipWrapper> | ||
<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"> | ||
Hello there! | ||
</Tooltip> | ||
</TooltipWrapper> | ||
</div> |