Popovers

Popovers display brief, contextual content until they are dismissed through interaction. They are triggered by clicking a page element.

Coded Components

Helper classes: Looking for a complete list of helper classes for these components?View helper classes

Redlines: We don't include redline comps because it's always more accurate to use developer tools to inspect the coded components, or a plugin such as the Prism Redline Tool.

Popover On Top

<button class="dds__btn dds__btn-secondary" data-toggle="dds__popover" data-placement="top" aria-haspopup="dialog" tabindex="0"> Popover on top
</button>

Popover On Right

<button class="dds__btn dds__btn-secondary" data-toggle="dds__popover" data-placement="right" aria-haspopup="dialog" tabindex="0"> Popover On Right
</button>

Popover On Bottom

<button class="dds__btn dds__btn-secondary" data-toggle="dds__popover" data-placement="bottom" aria-haspopup="dialog" tabindex="0"> Popover On Bottom
</button>

Popover On Left

<button class="dds__btn dds__btn-secondary" data-toggle="dds__popover" data-placement="left" aria-haspopup="dialog" tabindex="0"> Popover On Left
</button>

No items found.

No items found.

No items found.

Heading

No items found.

Usage

Popovers are opened with a click or tap (not on hover).

Required elements for a popover include:

  • Title
  • Body content (see below)
  • Close X button

Popover content should be brief. A popover should contain no more than two paragraphs of text, or one image and one paragraph (for example, a product image with a review snippet).

A popover should contain no more than two links in its content. Interaction with these links should be optional. If interaction with such content is required to proceed, then use a modal instead of a popover.

To close a popover, select the X button within it, or anywhere outside of it.

When there's insufficient space to display a popover on-screen without visual clipping, it changes its orientation in relation to the triggering element.

  • A popover on the top or bottom switches to the opposite orientation.
  • A popover on the right or left switches to the opposite orientation, or to the top if there's insufficient lateral space.

On smaller breakpoints, popovers become centered overlays (similar to modals) that aren't positioned in relation to the triggering element. Again, tap the X button inside the popover, or anywhere on the tinted area outside of it, to close it.

Keyboard Operation

Unlike modals, Tab and Shift + Tab will move focus outside a popover and thereby close it.

Tab key moves focus to the next tabbable element inside the popover. If focus is on the last tabbable element, then close the popover and return focus to the triggering element.

Shift + Tab keys moves focus to the previous tabbable element inside the modal. If focus is on the first tabbable element, then close the popover and return focus to the triggering element.

Escape key dismisses the popover. This is equivalent to selecting the X button within it.

Do's and Don'ts

Common Button Labels and Usage

Title case, 2-3 words maximum.
Do not combine actions in a label (exception: "Customize & Buy").
If standard labels don't fit the button's purpose, align label with the task the user is attempting.

Please refer to the Dell Technologies branding website, https://brand.delltechnologies.com/faq/#voice, for further information regarding call-to-action labels and usage.

Button Label:
Corresponding Action:
Add to Cart
Search
Cancel
Save
Edit
Delete
Continue
Next/Previous
Submit
Select
Sign In/Sign Out
View Details
Ok/Cancel
Learn More
Close
Takes users to Cart page, with item added
Used for search buttons
Takes users back to entry point for a task
Used to save an item
Navigates users to change an item
Deletes an item on the page, usually with a verification step
Used as progression
Used as forward and backward navigation (Next is primary, Previous is secondary)
Used to submit a task or info
Used for choosing items in a task flow
Authentication standard, for consistency do not use Log In/Log Out or Signin/Signout
Used instead of “Select” in cases of product details or within learn content
For use in modal verification steps when more specific CTAs will not fit due to space
Used to link users to more learning content or contextual help
Used within modal windows

Accessibility

The W3C Web Accessibility Initiative (WAI) develops standards and support materials to help you understand and implement accessibility.

Please follow the best practices for non-modal dialogs from WAI-ARIA authoring practices 1.1.

Please also refer to these recommendations for non-modal dialogs from WAI-ARIA 1.1.

You may refer to these examples of modal dialogs from WAI-ARIA practices 1.1.