diff --git a/front/ui-docs/components/ui/modal.md b/front/ui-docs/components/ui/modal.md index c98fb734c..592751fc7 100644 --- a/front/ui-docs/components/ui/modal.md +++ b/front/ui-docs/components/ui/modal.md @@ -33,22 +33,22 @@ const isOpen6 = ref(false) ```vue-html - - Modal content - - + + + Modal content + ```
- - Modal content - + + Modal content +
@@ -62,6 +62,10 @@ Make sure to add `autofocus` to the preferred button. ```vue-html + + Modal content @@ -75,13 +79,12 @@ Make sure to add `autofocus` to the preferred button. - - ```
+ Modal content -
@@ -107,18 +107,23 @@ Note that confirmation dialogs interrupt the user's workflow. Consider adding a ::: tip Read more about designing user experiences around dangerous actions: - [How to use visual signals and spacing to differentiate between benign and dangerous options](https://www.nngroup.com/articles/proximity-consequential-options/) -> If you need to implement dangerous actions, make sure to place them apart from other actions to prevent accidental clicks. Add contextual hints and information so that the user understands the consequences of the action. + + > If you need to implement dangerous actions, make sure to place them apart from other actions to prevent accidental clicks. Add contextual hints and information so that the user understands the consequences of the action. - [How to design a confirmation dialog](https://www.nngroup.com/articles/confirmation-dialog/) -> 1. Let the user confirm potentially destructive actions -> 2. Do not use confirmation dialogs for routine tasks -> 3. Be specific about the action and its potential consequences -> 4. Label the response buttons with their result: "Delete my account" instead of "Yes" -> 5. Make sure to give the user all information they need to decide + > 1. Let the user confirm potentially destructive actions + > 2. Do not use confirmation dialogs for routine tasks + > 3. Be specific about the action and its potential consequences + > 4. Label the response buttons with their result: "Delete my account" instead of "Yes" + > 5. Make sure to give the user all information they need to decide ::: ```vue-html + + - ``` + - - ```
+ Modal content -