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

Provideno-redundant-roles exception forrowgroup#531

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
khiga8 merged 1 commit intomainfromkh-set-exception-on-rule
Jun 4, 2024

Conversation

khiga8
Copy link
Contributor

@khiga8khiga8 commentedJun 4, 2024
edited
Loading

Relates to:https://github.com/github/accessibility/issues/5304

Follow-up to:https://github.com/github/accessibility/discussions/4921

What

This PR adds an exception so that theno-redundant-roles rule does not flag redundant use ofrowgroup for:

  • <thead role="rowgroup">
  • <tbody role="rowgroup">

Why

There have been 3 reported instances of false positives raised by this rule. All of these relate to redundant usage ofrole="rowgroup". Redundant usage ofrole="rowgroup" is necessary in some cases to ensure that table semantics are not dropped by screen readers.

The reported instances are:

It seems appropriate to not flag redundant use ofrole="rowgroup" for now. We can always revisit this in the future.

Why don't we turn this rule off completely?

All the reported false positives are forrole="rowgroup" which we can except, so it does not seem worth turning the rule off completely.

@khiga8khiga8 requested a review froma team as acode ownerJune 4, 2024 18:18
@khiga8khiga8 requested a review frommattcosta7June 4, 2024 18:18
@accessibility-bot
Copy link

👋 Hello and thanks for pinging us! You've entered ourfirst responder queue. An accessibility first responder will review this soon.

  • 💻 On PRs for our review: please provide a review environment with steps to validate, screenshots (with alt text), or videos demonstrating functionality we should be checking. This will help speed up our review and feedback cycle.
  • ⚠️If this is urgent, please visit us in#accessibility on Slack and tag the first responder(s) listed in the channel topic.

Copy link

@TylerJDevTylerJDev left a comment

Choose a reason for hiding this comment

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

Looks good, thanks a ton too! ✨

khiga8 reacted with heart emoji
'jsx-a11y/no-redundant-roles': [
'error',
{
nav: ['navigation'], // default in eslint-plugin-jsx-a11y

Choose a reason for hiding this comment

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

Just curious, is this needed because the object is overridden when we provide our own config/mapping? 🤔

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, that is correct!

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Or at least thats how I remember it.. let me double check 👀

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

If I'm interpreting thelogic correctly, it looks like the rule will use the default{ nav: ['navigation']}if the consumer isn't already passing an alternate option! This seems fine to keep!

@khiga8khiga8 merged commit8d9ed4f intomainJun 4, 2024
4 checks passed
@khiga8khiga8 deleted the kh-set-exception-on-rule branchJune 4, 2024 22:29
WtfJoke referenced this pull request in WtfJoke/setup-groovyAug 1, 2024
[![MendRenovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)This PR contains the following updates:| Package | Change | Age | Adoption | Passing | Confidence ||---|---|---|---|---|---||[eslint-plugin-github](https://togithub.com/github/eslint-plugin-github)| [`4.10.2` ->`5.0.1`](https://renovatebot.com/diffs/npm/eslint-plugin-github/4.10.2/5.0.1)|[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-github/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-github/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-github/4.10.2/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-github/4.10.2/5.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)|---### Release Notes<details><summary>github/eslint-plugin-github (eslint-plugin-github)</summary>###[`v5.0.1`](https://togithub.com/github/eslint-plugin-github/releases/tag/v5.0.1)[CompareSource](https://togithub.com/github/eslint-plugin-github/compare/v5.0.0...v5.0.1)#### What's Changed- chore(deps): bump the all-dependencies group with 5 updates by[@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/530](https://togithub.com/github/eslint-plugin-github/pull/530)- Provide `no-redundant-roles` exception for `rowgroup` by[@&#8203;khiga8](https://togithub.com/khiga8) in[https://github.com/github/eslint-plugin-github/pull/531](https://togithub.com/github/eslint-plugin-github/pull/531)**Full Changelog**:github/eslint-plugin-github@v5.0.0...v5.0.1###[`v5.0.0`](https://togithub.com/github/eslint-plugin-github/releases/tag/v5.0.0)[CompareSource](https://togithub.com/github/eslint-plugin-github/compare/v4.10.2...v5.0.0)Formally releasing v5.0.0!This release includes everything in pre-release[v5.0.0-2](https://togithub.com/github/eslint-plugin-github/releases/tag/v5.0.0-2)!We notably dropped support for node 14 and node 16 in favor of node 18.#### What's Changed- Drop node 14/16 support and fix bug in `getElementType` logic by[@&#8203;khiga8](https://togithub.com/khiga8) in[https://github.com/github/eslint-plugin-github/pull/525](https://togithub.com/github/eslint-plugin-github/pull/525)- Bump node 14 to node 18 by[@&#8203;khiga8](https://togithub.com/khiga8) in[https://github.com/github/eslint-plugin-github/pull/529](https://togithub.com/github/eslint-plugin-github/pull/529)- chore(deps): bump the all-dependencies group with 4 updates by[@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/510](https://togithub.com/github/eslint-plugin-github/pull/510)- chore(deps): bump the all-dependencies group with 2 updates by[@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/511](https://togithub.com/github/eslint-plugin-github/pull/511)- chore(deps): bump the all-dependencies group with 2 updates by[@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/512](https://togithub.com/github/eslint-plugin-github/pull/512)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/514](https://togithub.com/github/eslint-plugin-github/pull/514)- chore(deps): bump the all-dependencies group across 1 directory with 4updates by [@&#8203;dependabot](https://togithub.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/522](https://togithub.com/github/eslint-plugin-github/pull/522)</details>---### Configuration📅 **Schedule**: Branch creation - "before 4am on Monday" in timezoneEurope/Berlin, Automerge - At any time (no schedule defined).🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR becomes conflicted, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.---- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, checkthis box---This PR was generated by [MendRenovate](https://www.mend.io/free-developer-tools/renovate/). View the[repository joblog](https://developer.mend.io/github/WtfJoke/setup-groovy).<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
WtfJoke referenced this pull request in WtfJoke/setup-tectonicSep 13, 2024
This PR contains the following updates:| Package | Change | Age | Adoption | Passing | Confidence ||---|---|---|---|---|---||[eslint-plugin-github](https://redirect.github.com/github/eslint-plugin-github)| [`4.10.2` ->`5.0.2`](https://renovatebot.com/diffs/npm/eslint-plugin-github/4.10.2/5.0.2)|[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-plugin-github/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-plugin-github/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-plugin-github/4.10.2/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)|[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-plugin-github/4.10.2/5.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)|---### Release Notes<details><summary>github/eslint-plugin-github (eslint-plugin-github)</summary>###[`v5.0.2`](https://redirect.github.com/github/eslint-plugin-github/releases/tag/v5.0.2)[CompareSource](https://redirect.github.com/github/eslint-plugin-github/compare/v5.0.1...v5.0.2)#### What's Changed- chore(deps): bump the all-dependencies group across 1 directory with 3updates by [@&#8203;dependabot](https://redirect.github.com/dependabot)in[https://github.com/github/eslint-plugin-github/pull/533](https://redirect.github.com/github/eslint-plugin-github/pull/533)- chore(deps): bump braces from 3.0.2 to 3.0.3 by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/534](https://redirect.github.com/github/eslint-plugin-github/pull/534)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/535](https://redirect.github.com/github/eslint-plugin-github/pull/535)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/536](https://redirect.github.com/github/eslint-plugin-github/pull/536)- chore(deps): bump the all-dependencies group with 4 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/537](https://redirect.github.com/github/eslint-plugin-github/pull/537)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/538](https://redirect.github.com/github/eslint-plugin-github/pull/538)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/540](https://redirect.github.com/github/eslint-plugin-github/pull/540)- chore(deps): bump the all-dependencies group with 4 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/541](https://redirect.github.com/github/eslint-plugin-github/pull/541)- chore(deps): bump the all-dependencies group across 1 directory with 3updates by [@&#8203;dependabot](https://redirect.github.com/dependabot)in[https://github.com/github/eslint-plugin-github/pull/543](https://redirect.github.com/github/eslint-plugin-github/pull/543)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/544](https://redirect.github.com/github/eslint-plugin-github/pull/544)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/545](https://redirect.github.com/github/eslint-plugin-github/pull/545)- chore(deps): bump the all-dependencies group across 1 directory with 4updates by [@&#8203;dependabot](https://redirect.github.com/dependabot)in[https://github.com/github/eslint-plugin-github/pull/551](https://redirect.github.com/github/eslint-plugin-github/pull/551)**Full Changelog**:github/eslint-plugin-github@v5.0.1...v5.0.2###[`v5.0.1`](https://redirect.github.com/github/eslint-plugin-github/releases/tag/v5.0.1)[CompareSource](https://redirect.github.com/github/eslint-plugin-github/compare/v5.0.0...v5.0.1)#### What's Changed- chore(deps): bump the all-dependencies group with 5 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/530](https://redirect.github.com/github/eslint-plugin-github/pull/530)- Provide `no-redundant-roles` exception for `rowgroup` by[@&#8203;khiga8](https://redirect.github.com/khiga8) in[https://github.com/github/eslint-plugin-github/pull/531](https://redirect.github.com/github/eslint-plugin-github/pull/531)**Full Changelog**:github/eslint-plugin-github@v5.0.0...v5.0.1###[`v5.0.0`](https://redirect.github.com/github/eslint-plugin-github/releases/tag/v5.0.0)[CompareSource](https://redirect.github.com/github/eslint-plugin-github/compare/v4.10.2...v5.0.0)Formally releasing v5.0.0!This release includes everything in pre-release[v5.0.0-2](https://redirect.github.com/github/eslint-plugin-github/releases/tag/v5.0.0-2)!We notably dropped support for node 14 and node 16 in favor of node 18.#### What's Changed- Drop node 14/16 support and fix bug in `getElementType` logic by[@&#8203;khiga8](https://redirect.github.com/khiga8) in[https://github.com/github/eslint-plugin-github/pull/525](https://redirect.github.com/github/eslint-plugin-github/pull/525)- Bump node 14 to node 18 by[@&#8203;khiga8](https://redirect.github.com/khiga8) in[https://github.com/github/eslint-plugin-github/pull/529](https://redirect.github.com/github/eslint-plugin-github/pull/529)- chore(deps): bump the all-dependencies group with 4 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/510](https://redirect.github.com/github/eslint-plugin-github/pull/510)- chore(deps): bump the all-dependencies group with 2 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/511](https://redirect.github.com/github/eslint-plugin-github/pull/511)- chore(deps): bump the all-dependencies group with 2 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/512](https://redirect.github.com/github/eslint-plugin-github/pull/512)- chore(deps): bump the all-dependencies group with 3 updates by[@&#8203;dependabot](https://redirect.github.com/dependabot) in[https://github.com/github/eslint-plugin-github/pull/514](https://redirect.github.com/github/eslint-plugin-github/pull/514)- chore(deps): bump the all-dependencies group across 1 directory with 4updates by [@&#8203;dependabot](https://redirect.github.com/dependabot)in[https://github.com/github/eslint-plugin-github/pull/522](https://redirect.github.com/github/eslint-plugin-github/pull/522)</details>---### Configuration📅 **Schedule**: Branch creation - "before 4am on Monday" in timezoneEurope/Berlin, Automerge - At any time (no schedule defined).🚦 **Automerge**: Disabled by config. Please merge this manually once youare satisfied.♻ **Rebasing**: Whenever PR becomes conflicted, or you tick therebase/retry checkbox.🔕 **Ignore**: Close this PR and you won't be reminded about this updateagain.---- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, checkthis box---This PR was generated by [Mend Renovate](https://mend.io/renovate/).View the [repository joblog](https://developer.mend.io/github/WtfJoke/setup-tectonic).<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@TylerJDevTylerJDevTylerJDev approved these changes

@accessibility-botaccessibility-botAwaiting requested review from accessibility-botaccessibility-bot was automatically assigned from github/accessibility-reviewers

@mattcosta7mattcosta7Awaiting requested review from mattcosta7mattcosta7 is a code owner automatically assigned from github/web-systems-reviewers

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

Successfully merging this pull request may close these issues.

3 participants
@khiga8@accessibility-bot@TylerJDev

[8]ページ先頭

©2009-2025 Movatter.jp