Skip to content

docs: fix duplicate aria-current and ProgressBar label typo in examples#2445

Merged
frankensteinke merged 2 commits into
developfrom
docs/fix-aria-current-dup-and-progressbar-typo
Jun 25, 2026
Merged

docs: fix duplicate aria-current and ProgressBar label typo in examples#2445
frankensteinke merged 2 commits into
developfrom
docs/fix-aria-current-dup-and-progressbar-typo

Conversation

@frankensteinke

Copy link
Copy Markdown
Contributor

Summary

Fixes two pre-existing content bugs in component doc examples, surfaced by Copilot review on #2443 (the Prettier sweep, which only reformatted these lines and didn't introduce the issues):

  • TwoColumnPanel — the example set aria-current twice on the same <a>; dropped the duplicate so copy/pasted samples aren't confusing.
  • ProgressBar — the animated example aria-label read "Animated Progres"; corrected to "Animated Progress".

Kept separate from #2443 so that PR stays a pure mechanical formatting diff.

Note on merge order

Both lines are also reformatted by #2443. Whichever of these two PRs merges second will need a trivial rebase.

- TwoColumnPanel example set aria-current twice on the same <a>; drop
  the duplicate so copy/pasted samples are not confusing.
- ProgressBar animated example aria-label read "Animated Progres";
  correct to "Animated Progress".

Both surfaced by Copilot review on #2443.
@frankensteinke
frankensteinke marked this pull request as ready for review June 22, 2026 09:31
@frankensteinke
frankensteinke requested a review from a team as a code owner June 22, 2026 09:31
Copilot AI review requested due to automatic review settings June 22, 2026 09:31
@frankensteinke
frankensteinke enabled auto-merge (squash) June 22, 2026 09:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes two pre-existing accessibility/content issues in component documentation examples so copy/pasted snippets are correct and less confusing.

Changes:

  • Remove a duplicate aria-current attribute from the TwoColumnPanel docs example anchor.
  • Fix a typo in the ProgressBar animated example aria-label (“Progres” → “Progress”).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
docs/pages/components/TwoColumnPanel.mdx Drops the duplicate aria-current on the example <a> to avoid conflicting/invalid sample markup.
docs/pages/components/ProgressBar.mdx Corrects the aria-label typo in the animated ProgressBar example.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aws-amplify-us-east-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-2445.d15792l1n26ww3.amplifyapp.com

…ent-dup-and-progressbar-typo

# Conflicts:
#	docs/pages/components/ProgressBar.mdx
#	docs/pages/components/TwoColumnPanel.mdx
@frankensteinke
frankensteinke merged commit 8ba6962 into develop Jun 25, 2026
9 checks passed
@frankensteinke
frankensteinke deleted the docs/fix-aria-current-dup-and-progressbar-typo branch June 25, 2026 14:36
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.

3 participants