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: Add tree row label to expand/collapse button announcement #7840

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

LFDanLu
Copy link
Member

@LFDanLu LFDanLu commented Feb 27, 2025

Closes

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

Comment on lines +49 to +52
let labelProps = useLabels({
'aria-label': isExpanded ? stringFormatter.format('collapse') : stringFormatter.format('expand'),
'aria-labelledby': gridListAria.rowProps.id
});
Copy link
Member Author

Choose a reason for hiding this comment

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

for some reason my ipad VO doesn't announce "expand" anymore, just the row label, digging

Copy link
Member

@snowystinger snowystinger Feb 27, 2025

Choose a reason for hiding this comment

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

Possibly unhelpful, but it's working on my iPhone
18.3.1

accessibility tree looks right in chrome inspector, and from looking in the dom, it looks fine as well

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks for testing in 18! I feel like we've run into this iOS 17 VO before but I couldn't find any prior documentation in our other collapsable/expandable components but will punt for now

@rspbot
Copy link

rspbot commented Feb 27, 2025

snowystinger
snowystinger previously approved these changes Feb 27, 2025
@LFDanLu LFDanLu marked this pull request as ready for review February 28, 2025 00:03
@rspbot
Copy link

rspbot commented Feb 28, 2025

@LFDanLu LFDanLu added this pull request to the merge queue Feb 28, 2025
Merged via the queue into main with commit c737bf8 Feb 28, 2025
30 checks passed
@LFDanLu LFDanLu deleted the update_tree_expand_button_announcement branch February 28, 2025 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants