Conversation
🦋 Changeset detectedLatest commit: 07ebf70 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the accessibility of the Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly improves the accessibility of the chip component by addressing several key issues. It correctly implements roles (button or group), manages ARIA attributes by transferring them from the host to the internal container, and introduces auto-generated labels for closable chips to create a more semantic structure for screen readers. The changes to interaction styles, such as adjusting the cursor and hover effects based on whether the chip is closable, fix false affordances and provide better user feedback. The addition of comprehensive accessibility tests and Storybook stories is also a great enhancement. I've found one area for improvement in the SCSS regarding code duplication, which I've commented on.
| private closeButtonLabel?: string; | ||
|
|
||
| componentWillLoad() { | ||
| // Save the value BEFORE removing the attribute |
There was a problem hiding this comment.
pls suggest if it might make sense? how it can be imroved?
comments will be deleted after discussing.
03f51d9 to
07ebf70
Compare
|



💡 What is the current behavior?
The chip component has several accessibility issues:
aria-label, text and button appear unrelated in accessibility treeGitHub Issue Number: #3654 | Jira: IX-3654
🆕 What is the new behavior?
Interactive Behavior
buttontabIndex="0")onClickgroupKey Features
1. Auto-generated labels (PatternFly-inspired, Shadow DOM adapted)
2. ARIA support via
a11yHostAttributesutilityaria-disabled="true"for inactive state3. Close button labels via new
ariaLabelCloseButtonpropariaLabelCloseButton="Remove tag"(camelCase)aria-label-close-button="Remove tag"(kebab-case)4. Fixed visual affordances
:has())5. Screen reader improvements
aria-hidden="true")🏁 Checklist
A pull request can only be merged if all of these conditions are met (where applicable):
a11yHostAttributestabindexchip/accessibility/a11y-chip.stories.tswith 7 accessibility-focused storiesariaLabelCloseButtonprop and auto-generation feature require documentationpnpm test)toMatchAriaSnapshot)pnpm lint)pnpm build, changes pushed)