Skip to content

fix: remove invalid alt attribute from button elements#7544

Open
inoovador wants to merge 1 commit intolayer5io:masterfrom
inoovador:fix/remove-button-alt-attribute
Open

fix: remove invalid alt attribute from button elements#7544
inoovador wants to merge 1 commit intolayer5io:masterfrom
inoovador:fix/remove-button-alt-attribute

Conversation

@inoovador
Copy link

Summary

  • Removed invalid alt attribute from <Button> components in 4 files
  • The alt attribute is only valid on <img>, <area>, and <input type="image"> elements, not on <button>
  • Buttons already use aria-label and title for accessibility, so the alt attributes were unnecessary

Files changed:

  • src/sections/Products/index.js - Removed alt from 6 Button instances
  • src/sections/Kanvas/kanvas-buttons.js - Removed alt from 2 Button instances
  • src/sections/Solutions/solutions-buttons.js - Removed alt from 1 Button instance
  • src/sections/General/Navigation/index.js - Removed alt from 1 commented-out Button instance

Closes #7485

🤖 Generated with Claude Code

The alt attribute is only valid on <img>, <area>, and <input type="image">
elements. Several Button components had alt attributes which are invalid
on <button> elements. The buttons already use aria-label and title for
accessibility, so the alt attributes are unnecessary.

Closes layer5io#7485

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@l5io
Copy link
Member

l5io commented Mar 23, 2026

🚀 Preview for commit 931abc7 at: https://69c1744bcad5d1159f313435--layer5.netlify.app

Copy link
Member

@rishiraj38 rishiraj38 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DCO is failing. Please commit using git commit -s to pass it.

Copy link
Contributor

@Siddhi-sahu Siddhi-sahu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋@inoovador, please fix the DCO. Everything else looks good😊👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button should not use the alt attribute

4 participants