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
Allow arrow padding to be configured for a step. (#3051)
* Allow arrow padding to be configured for a step.
* fixup! Allow arrow padding to be configured for a step.
* fixup! Allow arrow padding to be configured for a step.
Copy file name to clipboardexpand all lines: docs-src/src/content/docs/guides/usage.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -297,4 +297,14 @@ myTour.addStep({
297
297
});
298
298
```
299
299
300
-
Furthermore, while Shepherd provides some basic arrow styling, you can style it as you wish by targeting the `.shepherd-arrow` element.
300
+
You can also provide an options object, to configure the arrow's [padding](https://floating-ui.com/docs/arrow#padding). The padding is the closest the arrow will get to the edge of the step.
301
+
302
+
```js
303
+
myTour.addStep({
304
+
id:'Step 1',
305
+
arrow: { padding:10 }
306
+
});
307
+
```
308
+
309
+
310
+
Furthermore, while Shepherd provides some basic arrow styling, you can style it as you wish by targeting the `.shepherd-arrow` element.
0 commit comments