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

Disclosure

OverviewStyleGuidelinesCodeAccessibilityDemos
GuidelinesSizes and style variantsWriting contentBehaviorResponsive designBest practicesGuidelinesSizes and style variantsWriting contentBehaviorResponsive designBest practices

Guidelines

In general, use a disclosure to reveal more information or details about an element or content on a page.

Disclosure vs. accordion

Use a disclosure to organize information that is either not critical for users to read or no longer fits on the page due to small screens. A disclosure displays a single section of content whereas an Accordion displays multiple sections that can be expanded simultaneously.

One open disclosure, one accordion. Text describing the disclosure: 'A disclosure on a product page displaying secondary information about trials.' Text describing the accordion: 'An accordion with multiple sections displaying important information about subscriptions.'

Sizes and style variants

Sizes

While the default size works well in most contexts, the compact size can be used for areas with more densely packed content. The compact disclosure can be used in sections where the body copy also uses a font size smaller than --rh-font-size-body-text-md.

Box vs. borderless

The box variant, which is the default, should be used when there needs to be clear visual separation from surrounding content. Use the borderless variant where a cleaner, less visually disruptive style is preferred.

Writing content

Title text

Title text should be simple so users know what to expect when they expand a disclosure. Beware that long character counts will break to two lines as screen sizes get smaller.

Character count

Element Character Count
Title Text 50

Panel content

When a disclosure is expanded, content appears below the title text and caret icon. Try and limit panel content to text and simple elements only like calls to action.

Behavior

Collapsing and expanding

When a disclosure is collapsed, the caret icon points down. When a disclosure is expanded, the caret icon animates to point up.

Nested disclosure

If there is a nested disclosure, it is always collapsed by default until a user expands it.

An open outer disclosure and a collapsed inner disclosure.

A disclosure can be used to organize interactive elements that do not fit on small screens like jump links.

An example of how a disclosure can be used to toggle the Jump Links element open and closed.

Responsive design

A disclosure does not change much as screens get smaller.

Four disclosures at various viewports, mobile to desktop.

Best practices

One panel only

A single collapsed disclosure

Use one disclosure for one section at a time.

Multiple disclosures on top of one another.

Do not stack disclosures, use an Accordion instead if more than one section is needed.

Line length

An open disclosure with a line length of 789px.

Keep the max width of body text at 789px.

An open disclosure with a line length greater than 798px.

Do not allow the max width of body text to exceed 789px otherwise it is hard to read.

Nesting elements

An open disclosure with a paragraph, CTA, and a closed nested disclosure.

Only a disclosure and other simple elements, like calls to action, can be nested within a disclosure.

An open disclosure with an accordion with three closed panels within.

Do not embed other complex elements in a disclosure.

© 2025 Red Hat Deploys by Netlify