AVT- The article element with a WAI-ARIA role article does not have the required label specified by aria-label or aria-labelledby.

Summary

The article element with a WAI-ARIA role article does not have the required label specified by aria-label or aria-labelledby.

Steps to reproduce

GitLab->Project->Details

What is the expected correct behavior?

Elements having any of the WAI-ARIA roles article must have a label specified with aria-label or aria-labelledby so as not to confuse users while navigating a page.

Possible fixes

The element is labeled with an aria-labelledby when tag has role = "article"

For example:

  <h1 id="news">Breaking news</h1>
      ...
      <div role="article" aria-labelledby="news">
      ...
      </div>

Relevant screenshots

@sharonchen @carmacleod

gitlab-ce~2677490

Edited by 🤖 GitLab Bot 🤖