Update docs for role=button

This commit is contained in:
Lucas Larroche 2022-01-16 11:44:41 +07:00
parent 270a128de4
commit 3fc8dad9a4
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -30,7 +30,7 @@
</footer> </footer>
</article> </article>
<p>Buttons are <code><i>width</i>: <u>100%</u>;</code> by default. Use <code>&lt;<b>a</b> <i>role</i>=<u>"button"&gt;</u></code> if you need an inline element.</p> <p>Buttons are <code><i>width</i>: <u>100%</u>;</code> by default. Use <code><i>role</i>=<u>"button"</code> on an inline element if you need an inline button.</p>
<article aria-label="Inline buttons examples"> <article aria-label="Inline buttons examples">
<a href="#" onclick="event.preventDefault()" role="button">Link</a> <a href="#" onclick="event.preventDefault()" role="button">Link</a>
<a href="#" onclick="event.preventDefault()" role="button">Link</a> <a href="#" onclick="event.preventDefault()" role="button">Link</a>