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: Update category.ts to produce valid "aria-level" attributes #7033

Merged
merged 2 commits into from
May 3, 2023

Conversation

MarkusBordihn
Copy link
Member

@MarkusBordihn MarkusBordihn commented May 1, 2023

The Aria level system starts with 1, but the variable 'this.level_' is zero-indexed and starts with 0, so be aware of this discrepancy when working with the code.

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #7027

Proposed Changes

Increase aria-level to start with 1 instead of 0.

Behavior Before Change

The aria-level starts with 0.

Behavior After Change

The aria-level starts with 1.

Reason for Changes

There are no aria-level with 0.

Test Coverage

Documentation

Additional Information

Refs: #7027

…ogle#7027

The Aria level system starts with 1, but the variable 'this.level_' is zero-indexed and starts with 0, so be aware of this discrepancy when working with the code.
@MarkusBordihn MarkusBordihn requested a review from a team as a code owner May 1, 2023 12:39
@MarkusBordihn MarkusBordihn changed the title Update category.ts to produce valid "aria-level" attributes to fix #7027 fix: Update category.ts to produce valid "aria-level" attributes May 1, 2023
@conventional-commit-lint-gcf
Copy link

conventional-commit-lint-gcf bot commented May 1, 2023

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels May 1, 2023
@BeksOmega
Copy link
Collaborator

Hi @MarkusBordihn :D Thanks for this fix! I'll leave Maribeth to review the PR, but wrt the conventional commits, since your PR only contains one commit you have to modify the commit message using git commit --amend you can see more info in our docs here. Thank you again!

Copy link
Contributor

@maribethb maribethb left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@maribethb maribethb merged commit b996372 into google:develop May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aria-level starting with 0!
3 participants