Developer notes

  • Do not use aria-label to add context. Some screenreaders will not read aria-label from non-interactive components.

Code examples

<p>Get a $10/mo discount with autopay</p>
<s class="h-bravo">
  <!-- Give context to the first number -->
  <span class="hidden">
    Original price:
  </span>
  $50
  <!-- Give context to the first number -->
  <span class="hidden">
    /mo
  </span>
</s>
<span class="h-bravo">
  <!-- Give context to the second number -->
  <span class="hidden">
    Price with $10 autopay discount
  </span>
  $40/mo
</span>

Get a $10/mo discount with autopay

$50 $40/mo