|
@@ -9,7 +9,7 @@ description: Alert messages for user notifications.
|
|
|
|
|
|
Depending on the information you need to convey, you can use one of the following types of alert messages - **success**, **info**, **warning** or **danger**. Using the right type of alert modal will help draw users' attention to the message and prompt them to take action.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered separated
|
|
|
+```html example vertical columns={2} centered separated
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
<h4 class="alert-title">Wow! Everything worked!</h4>
|
|
|
<div class="text-secondary">Your account has been saved!</div>
|
|
@@ -39,7 +39,7 @@ Depending on the information you need to convey, you can use one of the followin
|
|
|
|
|
|
Add a link to your alert message to redirect users to the details they need to complete or additional information they should read.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered
|
|
|
+```html example vertical columns={2} centered
|
|
|
<div class="alert alert-danger m-0">
|
|
|
This is a danger alert — <a href="#" class="alert-link">check it out</a>!
|
|
|
</div>
|
|
@@ -49,7 +49,7 @@ Add a link to your alert message to redirect users to the details they need to c
|
|
|
|
|
|
Add the `x` close button to make an alert modal dismissible. Thanks to that, your alert modal will disappear only once the user closes it.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered separated
|
|
|
+```html example vertical columns={2} centered separated
|
|
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
|
<div class="d-flex">
|
|
|
<div>
|
|
@@ -154,7 +154,7 @@ Add an icon to your alert modal to make it more user-friendly and help users eas
|
|
|
|
|
|
To see how the icon affects the alert modal, look at the example below.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered separated
|
|
|
+```html example vertical columns={2} centered separated
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
<div class="d-flex">
|
|
|
<div>
|
|
@@ -224,7 +224,7 @@ To see how the icon affects the alert modal, look at the example below.
|
|
|
|
|
|
Add an avatar to your alert modal to make it more personalized.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered separated
|
|
|
+```html example vertical columns={2} centered separated
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
<div class="d-flex">
|
|
|
<div>
|
|
@@ -271,7 +271,7 @@ Add an avatar to your alert modal to make it more personalized.
|
|
|
|
|
|
Add primary and secondary buttons to your alert modals if you want users to take a particular action based on the information included in the modal message.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered separated
|
|
|
+```html example vertical columns={2} centered separated
|
|
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
|
<h3 class="mb-1">Some Title</h3>
|
|
|
<p>Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim voluptate.</p>
|
|
@@ -322,7 +322,7 @@ If you want your alert to be really eye-catching, you can add a class `alert-imp
|
|
|
|
|
|
Look at the example below to see how the important alert affects the alert modal.
|
|
|
|
|
|
-```html example vertical background="surface" columns={2} centered separated
|
|
|
+```html example vertical columns={2} centered separated
|
|
|
<div class="alert alert-important alert-success alert-dismissible" role="alert">
|
|
|
<div class="d-flex">
|
|
|
<div>
|