ubuntu.com icon indicating copy to clipboard operation
ubuntu.com copied to clipboard

Button element is empty and has no accessible name.

Open Horlix opened this issue 2 years ago • 1 comments

List of affected URLs: https://docs.google.com/spreadsheets/d/12PCiksNMTyIrb2jEbXkCrj4thtPg5eng5rYPexCAObE/edit?usp=sharing

A programmatically determined name allows screen readers to tell users what the control does. To add a name do one of the following:

Add text between the button start and end tags Add a title attribute Add an aria-label attribute Add an aria-labelledby attribute Add an img alt attribute if the button contains an img element

Example URLs:

  • https://ubuntu.com/ceph/docs
  • https://ubuntu.com/ceph/docs/adding-mons
  • https://ubuntu.com/ceph/docs/adding-osds

Icon font needs a label.

<button type="submit" alt="search" class="p-search-box__button"><i class="p-icon--search"></i></button>

Horlix avatar Jul 25 '22 21:07 Horlix