Skip to content

fix(Avatar): remove tabIndex from img type avatar#1110

Merged
ychhabra-eightfold merged 2 commits intoEightfoldAI:mainfrom
ychhabra-eightfold:fix/avatar-img-tabindex
Mar 30, 2026
Merged

fix(Avatar): remove tabIndex from img type avatar#1110
ychhabra-eightfold merged 2 commits intoEightfoldAI:mainfrom
ychhabra-eightfold:fix/avatar-img-tabindex

Conversation

@ychhabra-eightfold
Copy link
Copy Markdown
Collaborator

SUMMARY:

Remove tabIndex from the <img> element when Avatar renders with a src prop. Images are not interactive elements and should not have tabIndex populated, preventing unnecessary keyboard focusability on image avatars.

GITHUB ISSUE (Open Source Contributors)

JIRA TASK (Eightfold Employees Only):

CHANGE TYPE:

  • Bugfix Pull Request
  • Feature Pull Request

TEST COVERAGE:

  • Tests for this change already exist
  • I have added unittests for this change

TEST PLAN:

  • Verify image avatars no longer have tabindex attribute in the DOM
  • Verify fallback and icon avatars still receive tabIndex as before
  • All existing Avatar tests pass with updated snapshots

🤖 Generated with Claude Code

Images are not interactive elements and should not have tabIndex populated.
This prevents unnecessary keyboard focusability on image avatars.

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

codesandbox-ci bot commented Mar 30, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@ychhabra-eightfold ychhabra-eightfold merged commit 3ab833e into EightfoldAI:main Mar 30, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants