Skip to content

chore(drawer.tsx): replace <header> and <footer> with <div>#662

Merged
maryxan merged 2 commits into
mainfrom
chore/drawers-landmarks
Jun 12, 2026
Merged

chore(drawer.tsx): replace <header> and <footer> with <div>#662
maryxan merged 2 commits into
mainfrom
chore/drawers-landmarks

Conversation

@maryxan

@maryxan maryxan commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes recurring accessibility violations in overlay components where portaled semantic <header> and <footer> elements were exposed as duplicate page landmarks (banner and contentinfo) to assistive technologies.

Changes

This PR affects the Drawer and Modal components by:

  • Replacing semantic <header> and <footer> elements in overlay chrome with styled <div> elements to prevent duplicate landmark announcements.
  • Adding aria-labelledby="drawer-title" to the Drawer dialog when a header/title is present, ensuring the dialog is properly labeled for assistive technologies.

Fixes

  • Resolves recurring a11y violations related to duplicate banner and contentinfo landmarks in portaled overlays.
  • Improves Drawer dialog accessibility by providing an accessible name via aria-labelledby.

@maryxan
maryxan requested a review from xanderantoniadis June 11, 2026 09:40
@maryxan maryxan self-assigned this Jun 11, 2026
@maryxan maryxan added the chore label Jun 11, 2026
@xanderantoniadis

Copy link
Copy Markdown
Collaborator

@maryxan Description might need some refining

Comment thread src/components/Drawer/Drawer.tsx
@maryxan
maryxan merged commit 8934668 into main Jun 12, 2026
1 of 2 checks passed
@maryxan
maryxan deleted the chore/drawers-landmarks branch June 12, 2026 10:43
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.7.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants