mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-30 14:22:07 +03:00
59fcc567f1
refs TryGhost/Ghost#11863 Some `a`tags with `href` attributes that are empty are used as buttons, but since the href is not linkifying anything, they appear as text nodes to assistive technologies. Give them a `"button"` role so it is guaranteed that assistive technologies will pick them up as actionable controls.
19 lines
637 B
Handlebars
19 lines
637 B
Handlebars
<header class="modal-header">
|
|
<h1>Are you sure you want to leave this page?</h1>
|
|
</header>
|
|
<a class="close" href="" role="button" title="Close" {{action "closeModal"}}>{{svg-jar "close"}}<span class="hidden">Close</span></a>
|
|
|
|
<div class="modal-body">
|
|
<p>
|
|
Hey there! It looks like you're in the middle of writing something and
|
|
you haven't saved all of your content.
|
|
</p>
|
|
|
|
<p>Save before you go!</p>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button {{action "closeModal"}} class="gh-btn"><span>Stay</span></button>
|
|
<button {{action "confirm"}} class="gh-btn gh-btn-red"><span>Leave</span></button>
|
|
</div>
|