From 601a4f63a4d12837f12b0f42a8147e716f542d06 Mon Sep 17 00:00:00 2001 From: Ardecrown0001 Date: Tue, 2 Jun 2026 10:29:18 +0100 Subject: [PATCH] fix(#341): improve accessibility for ResponsiveContainer WCAG 2.1 improvements to ResponsiveContainer and ResponsiveContainerFluid: - Add polymorphic s prop supporting all sectioning/landmark HTML elements (main, section, article, aside, header, footer, nav, div) so consumers render semantic markup instead of a generic
- Forward aria-label, aria-labelledby, aria-describedby, role, tabIndex, onKeyDown and all standard HTMLAttributes to the root element so keyboard navigation and screen reader labelling work without extra wrappers - Add data-testid defaults ('responsive-container' / 'responsive-container-fluid') for reliable automated testing - Export ResponsiveContainerFluidProps interface for type safety ResponsiveContainerExample.tsx: - Replace
-wrapped header/main/footer with as='header'/'main'/'footer' - Add aria-label='Primary navigation' to the