You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tour components provided by EUI allow for a flexible and customizable way to showcase items on a page in an ordered manner by augmenting existing elements on the page without altering functionality.
8
8
9
9
:::note
10
-
Examples on this page use localStorage to persist state.
10
+
Examples on this page use `localStorage` to persist state.
11
11
:::
12
12
13
13
## Usage
@@ -37,7 +37,7 @@ export default () => {
37
37
<EuiSpacersize="m" />
38
38
<EuiTourStep
39
39
content={
40
-
<EuiText>
40
+
<EuiTextsize="s">
41
41
<p>The tour step content.</p>
42
42
</EuiText>
43
43
}
@@ -88,7 +88,7 @@ export default () => {
88
88
<EuiTourStep
89
89
anchor={() =>anchorRef.current}
90
90
content={
91
-
<EuiText>
91
+
<EuiTextsize="s">
92
92
<p>
93
93
Popover is attached to the <EuiCode>anchorRef</EuiCode> button
94
94
</p>
@@ -120,7 +120,7 @@ export default () => {
120
120
<EuiTourStep
121
121
anchor="#anchorTarget"
122
122
content={
123
-
<EuiText>
123
+
<EuiTextsize="s">
124
124
<p>
125
125
Popover is attached to the <EuiCode>#anchorTarget</EuiCode> button
126
126
</p>
@@ -149,7 +149,7 @@ export default () => {
149
149
150
150
### Guided tour
151
151
152
-
Uers proceed through tour steps without needing to complete actions on the underlying page. In this scenario, consider showing both **Close tour** and **Next** buttons.
152
+
Users proceed through tour steps without needing to complete actions on the underlying page. In this scenario, consider showing both **Close tour** and **Next** buttons.
153
153
154
154
```tsx interactive
155
155
importReact, { useEffect, useState } from'react';
@@ -162,34 +162,35 @@ import {
162
162
EuiFlexItem,
163
163
EuiPanel,
164
164
EuiButtonIcon,
165
+
EuiText,
165
166
} from'@elastic/eui';
166
167
167
168
const demoTourSteps = [
168
169
{
169
170
step: 1,
170
171
title: 'Preview mode',
171
-
content: <p>See what your project looks like.</p>,
172
+
content: <EuiTextsize="s"><p>See what your project looks like.</p></EuiText>,
172
173
anchorRef: 'notActionDrivenStep1',
173
174
iconType: 'eye',
174
175
},
175
176
{
176
177
step: 2,
177
178
title: 'Build Mode',
178
-
content: <p>Build your project.</p>,
179
+
content: <EuiTextsize="s"><p>Build your project.</p></EuiText>,
179
180
anchorRef: 'notActionDrivenStep2',
180
181
iconType: 'code',
181
182
},
182
183
{
183
184
step: 3,
184
185
title: 'Comment mode',
185
-
content: <p>Collaborate with your colleagues.</p>,
186
+
content: <EuiTextsize="s"><p>Collaborate with your colleagues.</p></EuiText>,
186
187
anchorRef: 'notActionDrivenStep3',
187
188
iconType: 'comment',
188
189
},
189
190
{
190
191
step: 2,
191
192
title: 'Share',
192
-
content: <p>Share your project.</p>,
193
+
content: <EuiTextsize="s"><p>Share your project.</p></EuiText>,
0 commit comments