Intelligence Community Design System ICDS Get started Accessibility Styles Components Patterns Community
Show navigation section

Drawer

Guidance Code Accessibility

Easy to use for everyone

When the drawer component is expanded, the focus is automatically moved to the first interactive element within the drawer.

Focus is trapped within the drawer to help simplify keyboard navigation and keep the person's attention within its context.

The drawer can be expanded or collapsed by pressing 'Enter' or 'Space' when focused on the arrow button. The controlled variant can be collapsed using the 'close' button. Pressing the 'Escape' key will also collapse the drawer.

For Assistive Technology

The drawer component uses thearia-expanded attribute to indicate to screen reader users whether it is expanded or collapsed.

The drawer component uses thedialog role.

Based on

The drawer component has been based on the following resources:

  • ARIA: dialog role , MDN Web Docs, accessed August 2025.

  • Bottom sheets: Definition and UX Guidelines , Nielsen Norman Group, accessed August 2025.

Testing

We've tested this component against WCAG 2.2 Level AA. It's been tested with NVDA and VoiceOver, and several different people with different interaction methods.


Last reviewed 24 February 2026 .
Navigated to Drawer - Intelligence Community Design System