@@ -4,15 +4,16 @@ import { Meta, StoryFn } from "@storybook/react";
44import {
55 Button ,
66 Icon ,
7+ OverflowText ,
78 OverviewItem ,
89 OverviewItemDepiction ,
910 OverviewItemDescription ,
1011 OverviewItemLine ,
1112 Toolbar ,
1213 ToolbarSection ,
14+ VisualTour ,
1315 VisualTourProps ,
1416} from "../../../../index" ;
15- import VisualTour from "../VisualTour" ;
1617
1718import stepDefinitionsEn from "./defaultTour" ;
1819import stepDefinitionsDe from "./defaultTour.de" ;
@@ -23,6 +24,7 @@ export default {
2324 argTypes : { } ,
2425} as Meta < typeof VisualTour > ;
2526
27+ // FIXME: should give code example about the tour, not only about the elements used as targets
2628const Template : StoryFn < typeof VisualTour > = ( args : VisualTourProps ) => {
2729 const [ closed , setClosed ] = React . useState < boolean > ( true ) ;
2830
@@ -53,6 +55,7 @@ const Template: StoryFn<typeof VisualTour> = (args: VisualTourProps) => {
5355} ;
5456
5557// Randomly choose between English and German translation
58+ // FIXME: we cannot use random situation, otherwise the storybook example cannot relly compared between revisions
5659const stepDefinitions = Math . random ( ) < 0.5 ? stepDefinitionsEn : stepDefinitionsDe ;
5760
5861export const Default = Template . bind ( { } ) ;
@@ -71,8 +74,12 @@ const defaultArgs: VisualTourProps = {
7174 < Icon name = { "item-info" } />
7275 </ OverviewItemDepiction >
7376 < OverviewItemDescription >
74- < OverviewItemLine > { texts . firstLine } </ OverviewItemLine >
75- < OverviewItemLine > { texts . secondLine } </ OverviewItemLine >
77+ < OverviewItemLine >
78+ < OverflowText > { texts . firstLine } </ OverflowText >
79+ </ OverviewItemLine >
80+ < OverviewItemLine >
81+ < OverflowText > { texts . secondLine } </ OverflowText >
82+ </ OverviewItemLine >
7683 </ OverviewItemDescription >
7784 </ OverviewItem >
7885 ) ;
0 commit comments