Skip to content

Conversation

@sidhsharma1992
Copy link
Collaborator

This PR completes the implementation of the [hasLabeledChild] utility function that was previously stubbed. The utility is a core component of the rule factory system, enabling comprehensive detection of accessible child content in JSX elements.

🔧 Changes Made
Before
[hasLabeledChild] was a stub function that always returned false
Missing comprehensive child content accessibility validation
Limited support for detecting labeled child elements in buttons, links, and other interactive components

After
Complete implementation with robust child element analysis
Source code validation for aria-labelledby references using ESLint context
Deep traversal of nested child structures using [flattenChildren]
Comprehensive detection of multiple accessible content types
Enhanced rule factory system with proper labeled child validation

@sidhsharma1992 sidhsharma1992 linked an issue Sep 19, 2025 that may be closed by this pull request
@aubreyquinn aubreyquinn merged commit f754743 into main Sep 19, 2025
11 checks passed
@aubreyquinn aubreyquinn deleted the users/sidhshar/complete-haslabeledchild-implementation branch September 19, 2025 09:16
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.

Complete hasLabeledChild Implementation

3 participants