diff --git a/docs/src/pages/components/Modal.svx b/docs/src/pages/components/Modal.svx index 1adf6bf9..6c9024ea 100644 --- a/docs/src/pages/components/Modal.svx +++ b/docs/src/pages/components/Modal.svx @@ -6,6 +6,14 @@ +### Custom focus + +By default, the modal close button will be focused when opened. + +Use the `selectorPrimaryFocus` to specify the element that should be focused when the modal is opened (e.g., `#id`, `.class`, `[data-attribute]`). + + + ### Danger modal diff --git a/docs/src/pages/framed/Modal/ModalCustomFocus.svelte b/docs/src/pages/framed/Modal/ModalCustomFocus.svelte new file mode 100644 index 00000000..ea37142a --- /dev/null +++ b/docs/src/pages/framed/Modal/ModalCustomFocus.svelte @@ -0,0 +1,27 @@ + + + + + +

Create a new Cloudant database in the US South region.

+
+ +