Angular CDK Overlay: Adding accessibility features

Brian Treese on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateAccessibility10 min

About this video

The video shows how to make an Angular CDK overlay, such as a modal or pop-up, accessible. It covers ARIA roles and attributes, focus management with cdkTrapFocus and cdkFocusInitial, and keyboard handling. It is aimed at Angular developers who already build overlays.

What you’ll learn

  • Add ARIA roles and attributes to an Angular CDK overlay
  • Manage focus with cdkTrapFocus and cdkFocusInitial
  • Handle custom keyboard events with the overlayKeydown output