Shared modal example
A shared component owns the header layout, close and backdrop behavior, busy state and navigation control placement. Each dialog provides only its title, body, available actions and optional wizard steps. The left and right navigation icons use the same icon family and have accessible labels.
<dialog class="modal" aria-labelledby="job-title">
<div class="modal-head">
<button type="button" data-modal-close aria-label="Close" title="Close">...</button>
<button type="button" data-modal-navigation aria-label="Back" title="Back">...</button>
<button type="button" data-modal-navigation aria-label="Next" title="Next">...</button>
<h2 id="job-title">Backup job</h2>
</div>
<div class="modal-body">...</div>
<div class="modal-foot"><button type="submit">Save</button></div>
</dialog>
The shared shell places close and navigation on the left and centers the title. The footer action is text only. A dialog without wizard steps omits navigation; its content and actions remain specific to that dialog.