Skip to content

Commit aa762f5

Browse files
Auto-position tooltip
1 parent c07c195 commit aa762f5

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/VisualTour/VisualTour.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const StepPopover = ({ highlightedElement, step, titleSuffix, actionButtons }: S
147147
(tooltip: HTMLDivElement | null) => {
148148
if (tooltip) {
149149
createPopper(highlightedElement, tooltip, {
150-
placement: "right",
150+
placement: "auto",
151151
});
152152
}
153153
},

src/components/VisualTour/stories/VisualTour.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const stepDefinitions = Math.random() < 0.5 ? stepDefinitionsEn : stepDefinition
5757

5858
export const Default = Template.bind({});
5959
const defaultArgs: VisualTourProps = {
60-
containerElementQuery: "#tourContainer",
6160
steps: [
6261
{
6362
...stepDefinitions.firstStep,

0 commit comments

Comments
 (0)