Announcement

Collapse
No announcement yet.

Accessibility: Button Labels on Home Page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Accessibility: Button Labels on Home Page

    From Google's web.dev: Buttons do not have an accessible name. How do I add that? For example, one of the failing elements is:
    Button:
    <button name="search"><i class="icon-search"></i>button

    This is from the 3dcart template. To me, it seems that the button is named. Any insight is appreciated. Thanks.
    Last edited by Davef; 09-20-2019, 08:33 AM.

  • #2
    You can try adding aria-label="search button" attribute. Other options here: https://www.w3.org/TR/html-aam-1.0/#button-element

    Comment


    • #3
      Thank you. I apologize for the late response.

      Comment

      Working...
      X