Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(accessibility): add right title/alt #7094

Merged
merged 1 commit into from
Oct 8, 2024
Merged

fix(accessibility): add right title/alt #7094

merged 1 commit into from
Oct 8, 2024

Conversation

AugustinMauroy
Copy link
Member

Description

  • Remove useless getAcronymFromString usage on withMetaBar
  • Add a diffentitation bettwent alt and fallback
  • Add title

Validation

Title should be GitHub username. Alt should be GitHub username. And fallback should be the acronym.

Related Issues

Partially fix #7093 (no new tooltips components added because the are no discussion on that)

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • NA I've covered new added functionality with unit tests if necessary.

@AugustinMauroy AugustinMauroy requested a review from a team as a code owner October 7, 2024 07:42
Copy link

vercel bot commented Oct 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Oct 7, 2024 7:42am

Copy link
Member

@JakobJingleheimer JakobJingleheimer left a comment

Choose a reason for hiding this comment

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

🙌

Copy link
Member

@mikeesto mikeesto left a comment

Choose a reason for hiding this comment

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

LGTM. I probably would have put fallback: getAcronymFromString(username), into withMetaBar.tsx but that's a small nit

@AugustinMauroy
Copy link
Member Author

LGTM. I probably would have put fallback: getAcronymFromString(username), into withMetaBar.tsx but that's a small nit

It depends on how you look at AvatarGroup. I see it as any image with an alt which is the person and the acronym is part of the component itself. But the image ‘search’ logic isn't supposed to be in AvatarGroup.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 96 🟢 91 🔗
/en/about/previous-releases 🟢 99 🟢 100 🟢 96 🟢 92 🔗
/en/download 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 100 🟢 92 🔗

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 92%
90.47% (589/651) 76.29% (177/232) 94.35% (117/124)

Unit Test Report

Tests Skipped Failures Errors Time
131 0 💤 0 ❌ 0 🔥 5.278s ⏱️

@bmuenzenmeyer bmuenzenmeyer merged commit 5b77c34 into main Oct 8, 2024
11 of 15 checks passed
@bmuenzenmeyer bmuenzenmeyer deleted the fix(#7093) branch October 8, 2024 20:43
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.

Authorship displays only the user's GitHub profile image but no direct means to identify
4 participants