最佳答案
I am used to use title=""
attribute on my links/buttons/... to detail them. But bootstrap uses lots of aria-label=""
attributes, for accessibility reasons as far as I understood.
So I come up to create buttons like:
<button
id="show-raw-result"
class="btn btn-default btn-sm btn-twigfiddle"
title="Result was not easily readable so it has been automatically cleaned up, use this button to see the result raw"
aria-label="Result was not easily readable so it has been automatically cleaned up, use this button to see the result raw">
<span class="glyphicon glyphicon-asterisk"></span> Show raw result
</button>
But copying/pasting the title to create an aria-label looks just ugly. Which one should I choose, and why?