Button block markup in the front-end #1642
Labels
[Feature] Blocks
Overall functionality of blocks
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Enhancement
A suggestion for improvement.
Current button markup in the front-end:
I haven't check that closely but I was wondering why we need
<div>
wrapper? Could it just bep
wrapper which feels more semantic markup.First suggestion of markup without any testing:
Note that I switched
class="wp-block-button"
toa
element. I assume that many themes have already styles for link that look like a button. Now we just need to manually add that class toa
element.I'm not sure where the extra
<span>
is needed inside the<a>
. Markup could be like this:Or
The text was updated successfully, but these errors were encountered: