Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(website): [a11y] Mark logo as decorative for assistive technologies#5568

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bradzacher merged 2 commits intotypescript-eslint:mainfromBenDMyers:nav-alt
Sep 2, 2022

Conversation

BenDMyers
Copy link
Contributor

PR Checklist

Overview

On the TypeScript ESLint Docusaurus site, the logo's alt text ("TypeScript ESLint logo") is cluttering the logo link's accessible name for assistive technologies. When screenreader users navigate to the logo link, they're told "link, TypeScript ESLint logo TypeScript ESLint," which is too cumbersome. Additionally, voice control users would need to recite that name to trigger the link.

This pull request uses a change to Docusaurus that arrived in v2 (facebook/docusaurus#7658) to supply an empty alt text for the logo image, marking it as decorative for assistive technologies. As a result, the link's accessible name is simply "link, TypeScript ESLint."

DevTools showing empty alt for the image, and that the image is ignored in the accessibility tree:
(Note that Chrome DevTools showsalt when providedalt="". This is expected)
DevTools, showing empty alt for the image, and that the image is ignored in the accessibility tree

DevTools showing the logo link in the Accessibility tree, with the newly shortened name:

DevTools showing the logo link in the Accessibility tree, with the newly shortened name

This can be verified with a screenreader — I'm happy to demonstrate if needed.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@BenDMyers!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day.

@nx-cloud
Copy link

nx-cloudbot commentedAug 29, 2022
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commitb400bd3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 fromNxCloud.

@netlify
Copy link

netlifybot commentedAug 29, 2022
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitb400bd3
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/6310ea65b6bf75000879a7c1
😎 Deploy Previewhttps://deploy-preview-5568--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site settings.

@codecov
Copy link

codecovbot commentedSep 1, 2022
edited
Loading

Codecov Report

Merging#5568 (b400bd3) intomain (35bb8dd) willincrease coverage by0.12%.
The diff coverage isn/a.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #5568      +/-   ##==========================================+ Coverage   91.51%   91.63%   +0.12%==========================================  Files         349      134     -215       Lines       10945     1506    -9439       Branches     3222      226    -2996     ==========================================- Hits        10016     1380    -8636+ Misses        602       62     -540+ Partials      327       64     -263
FlagCoverage Δ
unittest91.63% <ø> (+0.12%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
packages/utils/src/ts-eslint/ESLint.ts
packages/utils/src/eslint-utils/RuleTester.ts
...plugin/src/rules/no-redundant-type-constituents.ts
...ages/eslint-plugin/src/rules/no-unsafe-argument.ts
packages/eslint-plugin/src/rules/typedef.ts
...utils/src/ast-utils/eslint-utils/PatternMatcher.ts
...kages/eslint-plugin/src/rules/no-dynamic-delete.ts
...ackages/eslint-plugin/src/rules/prefer-readonly.ts
packages/eslint-plugin/src/rules/no-shadow.ts
...es/eslint-plugin/src/rules/prefer-function-type.ts
... and205 more

@bradzacherbradzacher changed the titlefix(website): [a11y] Mark logo as decorative for assistive technologieschore(website): [a11y] Mark logo as decorative for assistive technologiesSep 2, 2022
Copy link
Member

@bradzacherbradzacher left a comment
edited
Loading

Choose a reason for hiding this comment

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

thanks for doing this!

image

BenDMyers reacted with rocket emoji
@bradzacherbradzacher merged commit4cbdc30 intotypescript-eslint:mainSep 2, 2022
@BenDMyersBenDMyers deleted the nav-alt branchSeptember 2, 2022 03:23
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsOct 3, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bradzacherbradzacherbradzacher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Docs: Navbar logo has extra decorative "TypeScript ESLint logo" narration
2 participants
@BenDMyers@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp