diff --git a/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx b/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx index 7d68a393c6..8dd6b52f26 100644 --- a/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx +++ b/packages/web-react/src/components/Tooltip/demo/TooltipPlacements.tsx @@ -1,7 +1,7 @@ import React, { ChangeEvent, useState } from 'react'; import DocsBox from '../../../../docs/DocsBox'; import { PlacementDictionaryType } from '../../../types'; -import { Grid } from '../../Grid'; +import { Grid, GridItem } from '../../Grid'; import { Radio } from '../../Radio'; import Tooltip from '../Tooltip'; import TooltipWrapper from '../TooltipWrapper'; @@ -20,7 +20,7 @@ const TooltipPlacements = () => { UNSAFE_className="mx-auto" UNSAFE_style={{ alignItems: 'center', justifyItems: 'center', maxWidth: '30rem' }} > -
+ { label="top-right" value="top-right" /> -
-
+ + { label="bottom-right" value="bottom-right" /> -
-
+ + { label="left-bottom" value="left-bottom" /> -
-
+ + { label="right-bottom" value="right-bottom" /> -
-
+ + Click @@ -144,7 +152,7 @@ const TooltipPlacements = () => { {placement} -
+ ); diff --git a/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipPlacements.twig b/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipPlacements.twig index fd79af4ef2..34a47e5a6d 100644 --- a/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipPlacements.twig +++ b/packages/web-twig/src/Resources/components/Tooltip/stories/TooltipPlacements.twig @@ -1,34 +1,34 @@
-
+ -
-
+ + -
-
+ + -
-
+ + -
-
+ + Click
the dots!
@@ -37,9 +37,10 @@
-
+
+ diff --git a/packages/web/src/scss/components/Tooltip/index.html b/packages/web/src/scss/components/Tooltip/index.html index 2d86b72d67..0bb63a4f9e 100644 --- a/packages/web/src/scss/components/Tooltip/index.html +++ b/packages/web/src/scss/components/Tooltip/index.html @@ -8,7 +8,7 @@

Placements

-
+
-
+
-
+
-
+
-
+