Skip to content

Fix AccessibilityContainer behaviour when it contains a UICollectionView or UITableView#566

Merged
meherkasam-square merged 1 commit intosquare:mainfrom
meherkasam-square:meher/a11y-elements
Jul 22, 2025
Merged

Fix AccessibilityContainer behaviour when it contains a UICollectionView or UITableView#566
meherkasam-square merged 1 commit intosquare:mainfrom
meherkasam-square:meher/a11y-elements

Conversation

@meherkasam-square
Copy link
Contributor

No description provided.

@meherkasam-square meherkasam-square self-assigned this Jul 10, 2025
@meherkasam-square meherkasam-square marked this pull request as ready for review July 18, 2025 20:07
@meherkasam-square meherkasam-square requested a review from a team as a code owner July 18, 2025 20:07
Copy link
Collaborator

@kyleve kyleve left a comment

Choose a reason for hiding this comment

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

Yay, glad to see this one landing!

Copy link
Contributor

@johnnewman-square johnnewman-square left a comment

Choose a reason for hiding this comment

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

These changes look good! I left a few questions in the integration branch.

@meherkasam-square meherkasam-square force-pushed the meher/a11y-elements branch 6 times, most recently from f861053 to 8c8b649 Compare July 19, 2025 08:47
extension UIView {
func recursiveAccessibleSubviews() -> [Any] {
subviews.flatMap { subview -> [Any] in
func accessibilityElements(
Copy link
Collaborator

Choose a reason for hiding this comment

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

We're now duplicating this same logic in three places here, within market, and in the snapshots.

It would be nice to have this (or an equivalent) as one of the canonical functions available in our forthcoming a11y toolbox. @soroushsq

Copy link
Contributor

Choose a reason for hiding this comment

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

In that case, do we expect that Blueprint will depend on the accessibility toolbox?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Given the more recent development of modifying the sort function to be more specific to how Blueprint behaves, we might need to maintain at two separate versions of frameSort.

@meherkasam-square meherkasam-square merged commit c97006e into square:main Jul 22, 2025
4 checks passed
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.

5 participants