@@ -727,7 +727,7 @@ elements manually, set the `autoFocus` prop on Modal to `false`.
727
727
728
728
### Interaction blocking
729
729
730
- Modal can be used to block user interaction while some action is being
730
+ Modal can be used to block user interaction while an action is being
731
731
performed.
732
732
733
733
``` docoff-react-preview
@@ -798,10 +798,10 @@ React.createElement(() => {
798
798
Modal can be used to display forms. It is recommended to use
799
799
[ FormLayout] ( /components/FormLayout ) component to layout form fields.
800
800
801
- While we support only controlled components, and we encourage you to use them ,
802
- it is possible to use native form and its functionality inside the modal.
803
- This might be useful when you need to use native form features like validation,
804
- submission, etc.
801
+ While we support only [ controlled components] [ controlled-components ] ,
802
+ and we encourage you to use them, it is possible to use native form and its
803
+ functionality inside the modal. This might be useful when you need to use
804
+ native form features like validation, submission, etc.
805
805
806
806
To do so, you need to set ` allowPrimaryActionOnEnterKey ` to ` false ` and remove
807
807
` onClick ` from the primary button. Then, you need to set ` form ` attribute on the
@@ -1208,6 +1208,7 @@ accessibility.
1208
1208
| ` --rui-Modal__animation__duration ` | Duration of animation used (when opening modal) |
1209
1209
1210
1210
[ button-attributes ] : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attributes
1211
+ [ controlled-components ] : /docs/getting-started/usage#foundation-css
1211
1212
[ dialog-attributes ] : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog#attributes
1212
1213
[ div-attributes ] : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div#attributes
1213
1214
[ heading-attributes ] : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements#attributes
0 commit comments