A NSW Government website
NSW Design System v3.28.1

Popover

A floating box controlled by a trigger element.

View variants & code

Family rebate

Helps families with dependants to pay their energy bills. Applications opening late July for the 2019-20 rebate.

Get startedopen_in_new

Family rebate

Helps families with dependants to pay their energy bills. Applications opening late July for the 2019-20 rebate.

Get startedopen_in_new

Family rebate

Helps families with dependants to pay their energy bills. Applications opening late July for the 2019-20 rebate.

Get startedopen_in_new

Show code Hide code

The popover component is used to reveal additional content and functionalities.

Guidance

Do
  • trigger a popover's visibility with a control element, for example, a button
  • keep popovers actively open until a user dismisses them by pressing the Esc key, clicking outside the popover or performing another action that closes the popover.
Don't
  • hide important information inside of a popover that the user may need in order to complete a task or workflow
  • use on non-interactive elements (for example, div, span, p)
  • use if the popover needs take up a large amount of the size of the screen
  • have multiple popovers open at the same time
  • nest one popover within another popover.

Accessibility

All components are responsive and designed to comply with WCAG 2.2 AA accessibility standards. Full compliance depends on using and configuring the components correctly.

Popover keyboard interaction and focus

  • Opens via the Enter or Space keys, or by clicking the trigger element.
  • On open, focus moves into the Popover container to navigate elements inside with the Tab key.
  • Dismissed by tabbing out of the Popover, pressing the Escape key, or clicking outside.
  • When dismissed, focus returns to the trigger element.

ARIA attributes