Skip to content

Commit 3fb62ed

Browse files
committed
updated docs
1 parent 92d74a4 commit 3fb62ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/components/modal/partials/code/how-to-use.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ When the Modal has been closed, the browser automatically returns the focus to t
5656

5757
If a Modal dialog presents a form, the initial focus should be set on the first input, as the first focusable element in the form. This can be achieved by setting the `autofocus` property on the first form input.
5858

59-
The `<form>` element should be placed in the `Hds::Modal::Body` subcomponent. We also recommend to associate it to the submit button using the `form` attribute, as shown below.
59+
The `<form>` element should be placed in the yielded `Body` subcomponent. We also recommend associating it with the submit button using the `form` attribute, as shown below.
6060

6161
When the Modal dialog contains information that might be lost on close, use a confirmation message before discarding it.
6262

0 commit comments

Comments
 (0)