diff --git a/docs/src/pages/components/Modal.svx b/docs/src/pages/components/Modal.svx index 1bd4a3bd..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 @@ -14,13 +22,19 @@ +### Has scrolling content + +Setting `hasScrollingContent` to `true` increases the vertical space within the modal. + + + ### Multiple modals ### Multiple secondary buttons -Use the `secondaryButtons` prop to render two secondary buttons for a "3-button modal". The prop is a 2-tuple type that supersedes `secondaryButtonText`. +Use the `secondaryButtons` prop to render two secondary buttons. The prop is a 2-tuple type that supersedes `secondaryButtonText`. diff --git a/docs/src/pages/framed/Modal/ModalButtonWithIcon.svelte b/docs/src/pages/framed/Modal/ModalButtonWithIcon.svelte index e096c3aa..cf69f2ab 100644 --- a/docs/src/pages/framed/Modal/ModalButtonWithIcon.svelte +++ b/docs/src/pages/framed/Modal/ModalButtonWithIcon.svelte @@ -1,10 +1,14 @@ + + + import { Button, Modal, TextInput } from "carbon-components-svelte"; + + let open = false; + + + + + +

Create a new Cloudant database in the US South region.

+
+ +
diff --git a/docs/src/pages/framed/Modal/ModalExtraSmall.svelte b/docs/src/pages/framed/Modal/ModalExtraSmall.svelte index 3e8c246e..2c78917f 100644 --- a/docs/src/pages/framed/Modal/ModalExtraSmall.svelte +++ b/docs/src/pages/framed/Modal/ModalExtraSmall.svelte @@ -1,10 +1,14 @@ + + - import { Modal } from "carbon-components-svelte"; + import { Button, Modal } from "carbon-components-svelte"; + + let open = false; + + - import { Modal } from "carbon-components-svelte"; + import { Button, Modal } from "carbon-components-svelte"; + + let open = false; + + + import { Button, Modal } from "carbon-components-svelte"; + + let open = false; + + + + + +

+ Cloudant is a fully managed, distributed database optimized for heavy + workloads and fast-growing web and mobile apps, IBM Cloudant is available as + an IBM Cloud® service with a 99.99% SLA. +

+
+

+ The database elastically scales throughput and storage, and its API and + replication protocols are compatible with Apache CouchDB for hybrid or + multicloud architectures. +

+
diff --git a/docs/src/pages/framed/Modal/ModalSmall.svelte b/docs/src/pages/framed/Modal/ModalSmall.svelte index 7fb1e9db..d28fca07 100644 --- a/docs/src/pages/framed/Modal/ModalSmall.svelte +++ b/docs/src/pages/framed/Modal/ModalSmall.svelte @@ -1,10 +1,14 @@ + +