Announcement

OverviewStyleGuidelinesCodeAccessibilityDemos

Keyboard navigation

A user should have the ability to interact with an announcement using their keyboard. Before focus is moved inside of an announcement, the Skip link element has focus first.

Two announcements, the first showing focus on a skip link, and the second showing focus on the CTA and close button
Announcement keyboard navigation behavior
Key Result
Tab Moves focus left to right: skip link, call to action, and then close button (or right to left for RTL languages)
Shift + Tab Moves focus right to left: close button, call to action, and then skip link (or left to right for RTL languages)
Enter
  • Skip link: moves focus to a specified in-page location (typically the main content below the navigation)
  • Call to action: directs a user to another page
  • Close button: closes the announcement

Focus order

If a user is qualified, they will see an announcement when the page loads. By default, pressing Tab always displays the Skip link element (1) first. As a user continues to press Tab, the Skip link disappears and then focus moves from left to right within the announcement (2 - 3). When focus exits the announcement, it moves down to the universal navigation links (4).

Two announcements with numbers on skip link (1), CTA (2), close button (3), and the first item in the main navigation (4).

Touch targets

Ensure interactive elements have adequate size and space for optimal touch targets.

Three announcements showing small red circles over each interactive element.

ARIA Authoring Practices Guide (APG)

Learn to use the accessibility semantics defined by the Accessible Rich Internet Application (ARIA) specification to create accessible web experiences.

View APG resources

Web Content Accessibility Guidelines

Understanding documents provide detailed explanations for Web Content Accessibility Guidelines (WCAG) guidelines and success criteria.

Other libraries

To learn more about our other libraries, visit the getting started page.