Skip to content

Commit

Permalink
fix(flow-item): Close back button tooltip on click (#6978)
Browse files Browse the repository at this point in the history
**Related Issue:** None

## Summary

If you have already clicked the back button close the tooltip.
  • Loading branch information
driskull committed May 17, 2023
1 parent bcf97cf commit 224b695
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/flow-item/flow-item.e2e.ts
Expand Up @@ -92,6 +92,11 @@ 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");
Expand Down
1 change: 1 addition & 0 deletions src/components/flow-item/flow-item.tsx
Expand Up @@ -336,6 +336,7 @@ export class FlowItem
</calcite-panel>
{backButtonEl ? (
<calcite-tooltip
closeOnClick={true}
label={label}
overlayPositioning="fixed"
placement="top"
Expand Down

0 comments on commit 224b695

Please sign in to comment.