HTML structure
dialog (dialog--success / dialog--warning / dialog--error)
├── dialog__icon (optional)
├── dialog__main
│ ├── other BEM component
dialog (dialog--success / dialog--warning / dialog--error)
├── dialog__icon (optional)
├── dialog__main
│ ├── other BEM component
This is a standard dialog. It can be used to convey simple information to users, such as: 'Welcome to your dashboard'
<section class="dialog">
<div class="dialog__main">
<section class="content content--90">
<p>This is a standard dialog. It can be used to convey simple information to users, such as: 'Welcome to your dashboard'</p>
</section>
</div>
</section>
This is a standard dialog with an inline svg icon. It can be used to convey simple information to users, such as: 'Did you know..'.
<section class="dialog">
<svg class="dialog__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M16,32 C7.2,32 0,24.8 0,16 C0,7.2 7.2,0 16,0 C24.8,0 32,7.2 32,16 C32,24.8 24.8,32 16,32 Z M16,11 C17.1,11 18,10.1 18,9 C18,7.9 17.1,7 16,7 C14.9,7 14,7.9 14,9 C14,10.1 14.9,11 16,11 Z M16,13 C14.9,13 14,13.9 14,15 L14,23 C14,24.1 14.9,25 16,25 C17.1,25 18,24.1 18,23 L18,15 C18,13.9 17.1,13 16,13 Z"/>
</svg>
<div class="dialog__main">
<section class="content content--90">
<p>This is a standard dialog with an inline svg icon. It can be used to convey simple information to users, such as: 'Did you know..'.</p>
</section>
</div>
</section>
This is a dialog with a success modifier and an inline svg icon. It can be used to display a positive message, such as: 'Your order is confirmed'.
<section class="dialog dialog--success">
<svg class="dialog__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M16,32 C7.2,32 0,24.8 0,16 C0,7.2 7.2,0 16,0 C24.8,0 32,7.2 32,16 C32,24.8 24.8,32 16,32 Z M14.9,21.4 C15,21.4 17.8,18.7 23.4,13.3 C24.2,12.5 24.2,11.3 23.4,10.5 C22.6,9.8 21.4,9.8 20.6,10.5 L13.5,17.4 L11.4,15.3 C10.6,14.6 9.4,14.6 8.6,15.3 C7.8,16.1 7.8,17.3 8.6,18.1 L12.1,21.4 C12.9,22.2 14.2,22.2 14.9,21.4 Z"/>
</svg>
<div class="dialog__main">
<section class="content content--90">
<p>This is a dialog with a <strong>success</strong> modifier and an inline svg icon. It can be used to display a positive message, such as: 'Your order is confirmed'.</p>
</section>
</div>
</section>
This is a dialog with a warning modifier and an inline svg icon. It can be used to display a warning message, such as: 'This order is not yet confirmed'.
<section class="dialog dialog--warning">
<svg class="dialog__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M16,0 C24.8,0 32,7.2 32,16 C32,24.8 24.8,32 16,32 C7.2,32 0,24.8 0,16 C0,7.2 7.2,0 16,0 Z M16,21 C14.9,21 14,21.9 14,23 C14,24.1 14.9,25 16,25 C17.1,25 18,24.1 18,23 C18,21.9 17.1,21 16,21 Z M16,19 C16.7,19 17.2257168,18.5 17.3,17.9 L18.8,10.4 C18.8,10.2 18.8,10 18.8,9.8 C18.8,8.3 17.6,7 16,7 C15.8,7 15.6,7 15.5,7 C13.9,7.3 12.9,8.8 13.2,10.4 L14.7,17.9 C14.8,18.5 15.4,19 16,19 Z"/>
</svg>
<div class="dialog__main">
<section class="content content--90">
<p>This is a dialog with a <strong>warning</strong> modifier and an inline svg icon. It can be used to display a warning message, such as: 'This order is not yet confirmed'.</p>
</section>
</div>
</section>
This is a dialog with an error modifier and an inline svg icon. It can be used to display an error message, such as: 'Your order could not be processed'.
<section class="dialog dialog--error">
<svg class="dialog__icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
<path d="M18.7,16 L21.4,13.3 C22.2,12.5 22.2,11.3 21.4,10.6 C20.7,9.8 19.5,9.8 18.7,10.6 L16,13.3 L13.3,10.6 C12.5,9.8 11.3,9.8 10.6,10.6 C9.8,11.3 9.8,12.5 10.6,13.3 L13.3,16 L10.6,18.7 C9.8,19.5 9.8,20.7 10.6,21.4 C11.3,22.2 12.5,22.2 13.3,21.4 L16,18.7 L18.7,21.4 C19.5,22.2 20.7,22.2 21.4,21.4 C22.2,20.7 22.2,19.5 21.4,18.7 L18.7,16 Z M16,32 C7.2,32 0,24.8 0,16 C0,7.2 7.2,0 16,0 C24.8,0 32,7.2 32,16 C32,24.8 24.8,32 16,32 Z"/>
</svg>
<div class="dialog__main">
<section class="content content--90">
<p>This is a dialog with an <strong>error</strong> modifier and an inline svg icon. It can be used to display an error message, such as: 'Your order could not be processed'.</p>
</section>
</div>
</section>