Skip to main content Home About the Design SystemRoadmap OverviewDesignersDevelopers OverviewColorGridIconographyInteractionsSpacingTypography Overview Global colorBox shadowTypographyBorderOpacitySpaceLengthIconBreakpointsMedia queries All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Menu dropdown Navigation link Navigation (primary) Navigation (secondary) Navigation (vertical) Pagination PopoverPlanned Progress stepper Scheme toggle Site status Skeleton Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed OverviewColor PalettesCustomizingDevelopers All PatternsAccordionCall to ActionCardFilterFormLink with iconLogo wallSearch barSticky bannerSticky cardTabsTagTile All Personalization PatternsAnnouncement FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers Design/code status Release notes Get support

Menu dropdown

OverviewStyleGuidelinesCodeAccessibilityDemos
StyleColor schemeConfigurationSpaceInteraction statesStyleColor schemeConfigurationSpaceInteraction states

Style

The menu dropdown is composed of a toggle, which opens a container with menu items. Menu items are versatile, with optional icons, descriptions, and organizational elements like group headings and separators.

Anatomy

An expanded menu dropdown with a menu toggle annotated with #1, a menu item annotated with a #2, and a menu group annotated with #3.
  1. Menu toggle
  2. Menu item
  3. Menu group

Color scheme

Menu dropdowns, including the different types of toggles, are available for both light and dark schemes.

Light scheme

A collapsed menu dropdown that says, 'View,' next to the same menu dropdown expanded in light scheme.

Basic (default) toggle - collapsed and expanded

Collapsed menu dropdown toggles with the ellipsis-vertical-fill icon in light scheme. One is borderless, and the other has a subtle border.

Compact toggle - borderless and box variants in the collapsed state

Dark scheme

A collapsed menu dropdown that says, 'View,' next to the same menu dropdown expanded in dark scheme.

Basic (default) toggle - collapsed and expanded

Collapsed menu dropdown toggles with the ellipsis-vertical-fill icon in dark scheme. One is borderless, and the other has a subtle border.

Compact toggle - borderless and box variants in the collapsed state

Configuration

Toggle variants and options

The element that triggers the menu can be displayed in two ways. The basic toggle is a standard, button-style trigger that includes both text (the toggle label) and a caret icon. The basic toggle can be the same width as the menu dropdown or shrink to fit its text.

Expanded menu dropdowns with one toggle that shrinks to fit its text and another that is the same width as the dropdown list.

The other option is to use a compact toggle, which omits a text label and displays only the ellipsis-vertical-fill icon. This dropdown toggle is available with or without a border. A compact toggle requires a descriptive aria-label to communicate its purpose to screen readers.

Two examples of a compact toggle that's collapsed and expanded to show the borderless and box variants.

Menu items are ideally actions. Those are shown in --rh-color-text-primary in the default state.

Some menu items may need to be links. In their default states, links will always use --rh-color-interactive-primary-default and show a dashed underline. If a menu item is a link that opens in a new window or tab, an external link icon is added automatically and aligned to the right.

View guidelines for using menu item types

An expanded menu dropdown with actions only and an expanded menu dropdown with links that are blue and have dashed underlines.

Menu items can include an icon and a description.

An expanded menu dropdown with small group headings and menu items that include an icon on the left and a description.

Space

Space values all viewport sizes. The image below shows the spacing for a basic menu toggle and the container for menu item groups.

Diagrams showing the spacing in a collapsed menu toggle and an expanded menu dropdown.

The image below shows spacing within a menu item that functions as a group heading and a menu item that includes all of the slots.

Diagrams that show spacing for a group heading and a menu item that has an icon and a description.

A compact menu toggle’s height matches the height of a menu toggle with text, so spacing does not factor as much in its sizing.

Interaction states

The images below show interaction states for both the menu toggle and menu items when the dropdown is expanded. When a menu dropdown is expanded, focus moves to the first menu item, and this state is reflected in all of the images.

Hover

Hover states for menu item types and variants of the collapsed and expanded menu toggles in light scheme. Hover states for menu item types and variants of the collapsed and expanded menu toggles in dark scheme.

Active

Active states for menu item types and variants of the collapsed and expanded menu toggles in light scheme. Active states for menu item types and variants of the collapsed and expanded menu toggles in dark scheme.

Focus

Focus states for menu item types and variants of the collapsed and expanded menu toggles in light scheme. Focus states for menu item types and variants of the collapsed and expanded menu toggles in dark scheme.
© 2025 Red Hat Deploys by Netlify