@@ -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
@@ -93,9 +96,6 @@ Make sure to add `autofocus` to the preferred button.
-
@@ -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
+
+
@@ -138,11 +143,11 @@ You will not be able to restore your account.
-
```
+
@@ -153,18 +158,15 @@ You will not be able to restore your account.
Do you want to delete your account forever?
You will not be able to restore your account.
-
-
-
-
-
-
-
-
- Open modal
-
```
+
+ Open modal
+
Nested modal content
@@ -197,9 +202,6 @@ You can nest modals to allow users to isOpen a modal from inside another modal.
Open nested modal
-
- Open modal
-
@@ -211,6 +213,10 @@ You can nest [Funkwhale alerts](./alert) to visually highlight content within th
```vue-html
+
+ Open modal
+
+
Modal content
@@ -224,13 +230,12 @@ You can nest [Funkwhale alerts](./alert) to visually highlight content within th
-
-
- Open modal
-
```
+
+ Open modal
+
Modal content
@@ -250,9 +255,6 @@ You can nest [Funkwhale alerts](./alert) to visually highlight content within th
-
- Open modal
-