In the example below I have a aria-label
inside my span
, which has as content/text the exact same value as the aria-label
: which, in this case, is whatever the variable $order->status
gets to be.
<span aria-label="{{ $order->status }}" class="ui-badge">{{ $order->status }}</span>
As far as I know, one shoudln't use any aria
property if the content makes the job; but in this case, using the propert would make my CSS much easier and descriptive, since I can style for each status without having to create new classes or using BEM's --flag
. In this case, is the aria-label
allowed or not?
&[aria-label="Pago"] {
background-color: $green;
}