Skip to content

feat: add accessible closeLabel prop to Badge close button#108

Merged
tmccoy14 merged 3 commits into
mainfrom
feat/badge-close-aria-label
Jul 6, 2026
Merged

feat: add accessible closeLabel prop to Badge close button#108
tmccoy14 merged 3 commits into
mainfrom
feat/badge-close-aria-label

Conversation

@tmccoy14

@tmccoy14 tmccoy14 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an explicit accessible label for the Badge close button and wires it through ResourceBadge, updating the UI package version and component docs accordingly.

Changes:

  • Add closeLabel prop to Badge and apply it as aria-label on the close button.
  • Thread closeLabel through ResourceBadge to the underlying Badge.
  • Update MDX documentation and bump @eqtylab/equality version to 2.2.2.

Reviewed changes

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

Show a summary per file
File Description
packages/ui/src/components/resource-badge/resource-badge.tsx Adds closeLabel prop and forwards it to Badge.
packages/ui/src/components/badge/badge.tsx Introduces closeLabel and uses it for the close button’s aria-label.
packages/ui/package.json Bumps package version to 2.2.2.
packages/demo/src/content/components/resource-badge.mdx Documents new closeLabel prop for ResourceBadge.
packages/demo/src/content/components/badge.mdx Documents new closeLabel prop for Badge.

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

Comment thread packages/ui/src/components/badge/badge.tsx Outdated
Comment thread packages/ui/src/components/badge/badge.tsx

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread packages/ui/src/components/badge/badge.tsx
Comment thread packages/demo/src/content/components/badge.mdx

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread packages/demo/src/content/components/resource-badge.mdx Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Comment thread packages/ui/src/components/badge/badge.tsx
@tmccoy14 tmccoy14 merged commit 719de5a into main Jul 6, 2026
2 checks passed
@tmccoy14 tmccoy14 deleted the feat/badge-close-aria-label branch July 6, 2026 15:02
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.

2 participants