From 6111f0277026309da94c96706ecefafc1cbf3d2f Mon Sep 17 00:00:00 2001 From: Weronika Olejniczak Date: Mon, 6 Oct 2025 13:33:11 +0200 Subject: [PATCH 1/2] fix(website): fix a typo on tour doc page --- packages/website/docs/components/display/tour/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/website/docs/components/display/tour/index.mdx b/packages/website/docs/components/display/tour/index.mdx index 416db97b01a..fd547800045 100644 --- a/packages/website/docs/components/display/tour/index.mdx +++ b/packages/website/docs/components/display/tour/index.mdx @@ -149,7 +149,7 @@ export default () => { ### Guided tour -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. +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. ```tsx interactive import React, { useEffect, useState } from 'react'; From 4b32c4dc3bb5271f5ad8d34fd2f569021861d303 Mon Sep 17 00:00:00 2001 From: Weronika Olejniczak Date: Mon, 6 Oct 2025 13:46:10 +0200 Subject: [PATCH 2/2] feat(website): add size="s" to all content `EuiText` wrappers --- .../docs/components/display/tour/index.mdx | 62 +++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/packages/website/docs/components/display/tour/index.mdx b/packages/website/docs/components/display/tour/index.mdx index fd547800045..d7863509c9a 100644 --- a/packages/website/docs/components/display/tour/index.mdx +++ b/packages/website/docs/components/display/tour/index.mdx @@ -7,7 +7,7 @@ keywords: [EuiTour, EuiTourStep, useEuiTour] 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. :::note -Examples on this page use localStorage to persist state. +Examples on this page use `localStorage` to persist state. ::: ## Usage @@ -37,7 +37,7 @@ export default () => { +

The tour step content.

} @@ -88,7 +88,7 @@ export default () => { anchorRef.current} content={ - +

Popover is attached to the anchorRef button

@@ -120,7 +120,7 @@ export default () => { +

Popover is attached to the #anchorTarget button

@@ -162,34 +162,35 @@ import { EuiFlexItem, EuiPanel, EuiButtonIcon, + EuiText, } from '@elastic/eui'; const demoTourSteps = [ { step: 1, title: 'Preview mode', - content:

See what your project looks like.

, + content:

See what your project looks like.

, anchorRef: 'notActionDrivenStep1', iconType: 'eye', }, { step: 2, title: 'Build Mode', - content:

Build your project.

, + content:

Build your project.

, anchorRef: 'notActionDrivenStep2', iconType: 'code', }, { step: 3, title: 'Comment mode', - content:

Collaborate with your colleagues.

, + content:

Collaborate with your colleagues.

, anchorRef: 'notActionDrivenStep3', iconType: 'comment', }, { step: 2, title: 'Share', - content:

Share your project.

, + content:

Share your project.

, anchorRef: 'notActionDrivenStep4', iconType: 'share', }, @@ -316,6 +317,7 @@ import { EuiSpacer, EuiTextArea, EuiTourStep, + EuiText, } from '@elastic/eui'; const demoTourSteps = [ @@ -323,20 +325,19 @@ const demoTourSteps = [ step: 1, title: 'Step 1', content: ( - +

Copy and paste this sample query.

- - {'SELECT email FROM “kibana_sample_data_ecommerce”'} + {'SELECT email FROM "kibana_sample_data_ecommerce"'} -
+
), anchorRef: 'tourStep2', }, { step: 2, title: 'Step 2', - content:

Save your changes.

, + content:

Save your changes.

, anchorRef: 'tourStep1', }, ]; @@ -469,6 +470,7 @@ import { EuiTextArea, EuiTourStep, useEuiTour, + EuiText, } from '@elastic/eui'; const demoTourSteps = [ @@ -476,20 +478,19 @@ const demoTourSteps = [ step: 1, title: 'Step 1', content: ( - +

Copy and paste this sample query.

- - {'SELECT email FROM “kibana_sample_data_ecommerce”'} + {'SELECT email FROM "kibana_sample_data_ecommerce"'} -
+
), anchorPosition: 'rightUp', }, { step: 2, title: 'Step 2', - content:

Save your changes.

, + content:

Save your changes.

, anchorPosition: 'rightUp', }, ]; @@ -585,6 +586,7 @@ import { EuiTextArea, EuiTour, EuiTourStep, + EuiText, } from '@elastic/eui'; const demoTourSteps = [ @@ -592,20 +594,19 @@ const demoTourSteps = [ step: 1, title: 'Step 1', content: ( - +

Copy and paste this sample query.

- - {'SELECT email FROM “kibana_sample_data_ecommerce”'} + {'SELECT email FROM "kibana_sample_data_ecommerce"'} -
+
), anchorPosition: 'rightUp', }, { step: 2, title: 'Step 2', - content:

Save your changes.

, + content:

Save your changes.

, anchorPosition: 'rightUp', }, ]; @@ -703,6 +704,7 @@ import { EuiTextArea, EuiTourStep, useEuiTour, + EuiText, } from '@elastic/eui'; const demoTourSteps = [ @@ -714,12 +716,12 @@ const demoTourSteps = [ step: 2, title: 'Step 2', anchorPosition: 'upCenter', - content:

What is your favorite color?

, + content:

What is your favorite color?

, }, { step: 3, title: 'Step 3', - content:

Click here for more cool things.

, + content:

Click here for more cool things.

, anchorPosition: 'downRight', minWidth: 'auto', }, @@ -778,13 +780,12 @@ export default () => { {...euiTourStepOne} zIndex={1} content={ -
+

This is a neat thing. You enter queries here.

- Ok, got it. -
+ } > { {...euiTourStepFour} zIndex={1} content={ -
+

That about does it.

- Take me to the start. -
+ } >