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
Copy file name to clipboardExpand all lines: website/docs/components/modal/partials/code/how-to-use.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ When the Modal has been closed, the browser automatically returns the focus to t
56
56
57
57
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.
58
58
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.
60
60
61
61
When the Modal dialog contains information that might be lost on close, use a confirmation message before discarding it.
0 commit comments