Skip to content

Button should not use the alt attribute #7485

@leecalcote

Description

@leecalcote

Description

Several interactive elements use attributes that do not belong to them:

Button alt attributes: The "Get Started" buttons include an alt attribute:

<button class="..." id="get-started-2" aria-label="Signup for Layer5 Cloud" title="Get Started" alt="Signup for Layer5 Cloud">

Expected Behavior

The alt attribute is exclusively for images (<img>, <area>, <input type="image">). It is completely invalid on a <button>. Since the button already correctly uses aria-label and title, the alt attribute should be removed.


Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions