Trên trang này

Trang này chưa có bản tiếng Việt, nội dung bên dưới là bản tiếng Anh. Xem trang tiếng Anh

Thẻ xem trước

Keys, what Hover card gives you and what your team does.

Conformance

Hover card meets WCAG 2.2 level AA when used as described on these pages: as a preview that repeats information the linked page has. It meets 1.4.13 Content on Hover or Focus.

Keyboard

Key Action
Tab Moves focus to the link and opens the card.
Esc Closes the card. Focus stays on the link.
Enter Follows the link.

What Hover card gives you

  • Opens on keyboard focus as well as on hover.
  • Stays while the pointer moves onto it, closes on Esc, and stays until the pointer or focus leaves (WCAG 1.4.13).
  • The 300 ms wait stops cards flashing open as the pointer crosses a list.
  • An opaque edge and shadow, so it stands apart from the page in both themes.

What your team does

  • Use a link as the trigger, with text that names where it goes.
  • Put nothing only in the card: screen readers do not announce it, and touch screens never open it.
  • Put no buttons, fields or other links in the card.

WCAG criteria

Criterion Level How
1.4.13 Content on Hover or Focus AA Can be closed with Esc, can be hovered, stays until dismissed
2.1.1 Keyboard A Opens on focus; the link itself works without it
2.4.4 Link Purpose (In Context) A The link text names its target; the card adds to it