Add 'Back' button to tutorial popover

Introduces a 'Back' button to the blocks control popover in the tutorial, allowing users to navigate to the previous step.
This commit is contained in:
Bentlybro
2025-08-20 11:57:39 +01:00
parent b20b00a441
commit 9b71c03d96

View File

@@ -190,7 +190,12 @@ export const startTutorial = (
element: '[data-id="blocks-control-popover-content"]',
on: "right",
},
buttons: [],
buttons: [
{
text: "Back",
action: tour.back,
},
],
beforeShowPromise: () =>
waitForElement('[data-id="blocks-control-popover-content"]').then(() => {
disableOtherBlocks(