Can you please confirm that the following will not be generated in the markup for the close button in modal?
<span aria-hidden="true">×</span>
Can you please confirm that the following will not be generated in the markup for the close button in modal?
<span aria-hidden="true">×</span>
it just needs to be:
<span class="visually-hidden" aria-hidden="true">×</span>
Per Bootstrap’s doc, it is not necessary.
<div class="modal-header">
<h5 class="modal-title">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
Per the migration doc:
Close buttons now use a
background-image
(embedded SVG) instead of a×
in the HTML, allowing for easier customization without the need to touch your markup.
yes but that doesn’t makes it visible on blind reader devices - hence the aria and hidden attribute
From Bootstrap:
Be sure to include text for screen readers , as we’ve done with
aria-label
.
aria-label="Close"
Fixed in Wappler 3.7.1