Skip to content

Commit b28ae05

Browse files
committed
docs(modal): updated usage, usability and accessibility
1 parent a8e5419 commit b28ae05

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

portal/collections/_components/modal.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,14 +513,22 @@ <h2 class="title fw-bold" id="usage-guidelines">Usage guidelines</h2>
513513
<h2 class="title fw-bold" id="usability-guidelines">
514514
Usability guidelines
515515
</h2>
516-
<p class="fw-bold mb-0">User triggered</p>
516+
<p>
517+
<b>User triggered</b><br>
517518
Modals should always appear as a result of a action that a user has taken like when submitting a application. Modals should not be automatically displayed to the user. Some exceptions to the rule would be if you need to inform users that their session is about to time out or if they have to accept cookies before proceeding.
518-
<p class="fw-bold mb-0">Clear heading labels and CTAs</p>
519+
</p>
520+
<p>
521+
<b>Clear heading labels and CTAs</b><br>
519522
Ensure that the heading and CTAs are clear to the user. This avoids confusion and indicates what action needs to be taken.
520-
<p class="fw-bold mb-0">Try to avoid long content with scrolling</p>
523+
</p>
524+
<p>
525+
<b>Try to avoid long content with scrolling</b><br>
521526
Long content with scrolling limits a user's ability to view the entire message due to the limited space.
522-
<p class="fw-bold mb-0">Behaviour</p>
527+
</p>
528+
<p>
529+
<b>Behaviour</b><br>
523530
Allow users to close the modal by clicking the backdrop (the area outside the modal) and by pressing the Esc key.
531+
</p>
524532
</section>
525533

526534
<!-- Accessibility guidelines Section -->

0 commit comments

Comments
 (0)