We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89f98dd commit c272193Copy full SHA for c272193
1 file changed
src/components/VisualTour/VisualTour.tsx
@@ -80,7 +80,10 @@ export const VisualTour = ({
80
if (elementToHighlight) {
81
// Typescript for some reason incorrectly infers the type of elementToHighlight as never
82
(elementToHighlight as HTMLElement).classList.add(highlightElementClass);
83
- (elementToHighlight as HTMLElement).scrollIntoView();
+ (elementToHighlight as HTMLElement).scrollIntoView({
84
+ behavior: "smooth",
85
+ block: "center",
86
+ });
87
}
88
const stepDisplay = (
89
<Badge tagProps={{ emphasis: "weaker" }} size="large">
0 commit comments