Skip to content

Conversation

kgogov
Copy link
Member

@kgogov kgogov commented Aug 15, 2025

Only apply button role and ARIA attributes when the title can actually toggle the header. When no header is present (non-interactive state), the title area should not have button semantics or related ARIA attributes.

  • Remove button role when title is not interactive
  • Remove aria-expanded when title is not interactive
  • Remove aria-describedby when title is not interactive

This ensures screen readers don't announce toggle functionality when no header exists to toggle.

Fixes: #12053

…d on interactivity

Only apply button role and ARIA attributes when the title can actually
toggle the header. When no header is present (non-interactive state),
the title area should not have button semantics or related ARIA attributes.

- Remove button role when title is not interactive
- Remove aria-expanded when title is not interactive
- Remove aria-describedby when title is not interactive

This ensures screen readers don't announce toggle functionality
when no header exists to toggle.

Fixes: #12053
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.

[DynamicPage]: Screen reader is incorrectly announcing the name, role and state information for the non-interactive header section.
1 participant