diff --git a/packages/calcite-components/src/components/flow-item/flow-item.e2e.ts b/packages/calcite-components/src/components/flow-item/flow-item.e2e.ts index c49ab0d463e..ed0283fcaac 100644 --- a/packages/calcite-components/src/components/flow-item/flow-item.e2e.ts +++ b/packages/calcite-components/src/components/flow-item/flow-item.e2e.ts @@ -99,11 +99,6 @@ describe("calcite-flow-item", () => { expect(backButtonNew).not.toBeNull(); - const backButtonTooltip = await page.find(`calcite-flow-item >>> calcite-tooltip`); - - expect(backButtonTooltip).not.toBeNull(); - expect(await backButtonTooltip.getProperty("closeOnClick")).toBe(true); - expect(await backButtonNew.isVisible()).toBe(true); const calciteFlowItemBack = await page.spyOnEvent("calciteFlowItemBack", "window"); diff --git a/packages/calcite-components/src/components/flow-item/flow-item.tsx b/packages/calcite-components/src/components/flow-item/flow-item.tsx index c1c5d838fa3..d7ce563bd74 100644 --- a/packages/calcite-components/src/components/flow-item/flow-item.tsx +++ b/packages/calcite-components/src/components/flow-item/flow-item.tsx @@ -190,7 +190,6 @@ export class FlowItem containerEl: HTMLCalcitePanelElement; - @State() backButtonEl: HTMLCalciteActionElement; @State() defaultMessages: FlowItemMessages; @@ -292,6 +291,7 @@ export class FlowItem scale="s" slot="header-actions-start" text={label} + title={label} // eslint-disable-next-line react/jsx-sort-props ref={this.setBackRef} /> @@ -309,9 +309,7 @@ export class FlowItem loading, menuOpen, messages, - backButtonEl, } = this; - const label = messages.back; return ( - {backButtonEl ? ( - - {label} - - ) : null} ); }