Skip to content

Commit 9a920df

Browse files
all modal headings are now h1Modal Dialog Example: Table of contents includes headings from example div that should not be included in TOC
Fixes #3395
1 parent d847aad commit 9a920df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/patterns/dialog-modal/examples/dialog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2 id="ex_label">Example</h2>
5252
<button type="button" onclick="openDialog('dialog1', this)">Add Delivery Address</button>
5353
<div id="dialog_layer" class="dialogs">
5454
<div role="dialog" id="dialog1" aria-labelledby="dialog1_label" aria-modal="true" class="hidden">
55-
<h2 id="dialog1_label" class="dialog_label">Add Delivery Address</h2>
55+
<h1 id="dialog1_label" class="dialog_label">Add Delivery Address</h1>
5656
<div class="dialog_form">
5757
<div class="dialog_form_item">
5858
<label>
@@ -96,7 +96,7 @@ <h2 id="dialog1_label" class="dialog_label">Add Delivery Address</h2>
9696

9797
<!-- Second modal to open on top of the first modal -->
9898
<div id="dialog2" role="dialog" aria-labelledby="dialog2_label" aria-describedby="dialog2_desc" aria-modal="true" class="hidden">
99-
<h2 id="dialog2_label" class="dialog_label">Verification Result</h2>
99+
<h1 id="dialog2_label" class="dialog_label">Verification Result</h1>
100100
<div id="dialog2_desc" class="dialog_desc">
101101
<p tabindex="-1" id="dialog2_para1">
102102
This is just a demonstration.
@@ -148,7 +148,7 @@ <h2 id="dialog2_label" class="dialog_label">Verification Result</h2>
148148

149149
<!-- Dialog that replaces dialog 1. -->
150150
<div id="dialog3" role="dialog" aria-labelledby="dialog3_label" aria-describedby="dialog3_desc" aria-modal="true" class="hidden">
151-
<h2 id="dialog3_label" class="dialog_label">Address Added</h2>
151+
<h1 id="dialog3_label" class="dialog_label">Address Added</h1>
152152
<p id="dialog3_desc" class="dialog_desc">
153153
The address you provided has been added to your list of delivery addresses.
154154
It is ready for immediate use.
@@ -160,7 +160,7 @@ <h2 id="dialog3_label" class="dialog_label">Address Added</h2>
160160
</div>
161161

162162
<div id="dialog4" role="dialog" aria-labelledby="dialog4_label" aria-describedby="dialog4_desc" class="hidden" aria-modal="true">
163-
<h2 id="dialog4_label" class="dialog_label">End of the Road!</h2>
163+
<h1 id="dialog4_label" class="dialog_label">End of the Road!</h1>
164164
<p id="dialog4_desc" class="dialog_desc">You activated a fake link or button that goes nowhere! The link or button is present for demonstration purposes only.</p>
165165
<div class="dialog_form_actions">
166166
<button type="button" id="dialog4_close_btn" onclick="closeDialog(this)">Close</button>

0 commit comments

Comments
 (0)