Notification drawer

A notification drawer contains an application's notifications, which users can view and manage without having to navigate to a new screen.

Examples

Basic

Notifications

3 unread
  • Info notification: Unread info notification title

    This is an info notification description.
    5 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    10 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    20 minutes ago
  • Warning notification: Read warning notification title

    This is a warning notification description.
    20 minutes ago
  • Success notification: Read success notification title

    This is a success notification description.
    30 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.
    40 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.
    50 minutes ago
  • Success notification: Notification drawer item title

    This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.
    55 minutes ago

Groups

Notifications

9 unread

  • Info notification: Unread info notification title

    This is an info notification description.
    5 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    10 minutes ago
  • Custom notification: Unread recommendation notification title. This is a long title to show how the title will wrap if it is long and wraps to multiple lines.

    This is a recommendation notification description. This is a long description to show how the title will wrap if it is long and wraps to multiple lines.
    20 minutes ago
  • Warning notification: Read warning notification title

    This is a warning notification description.
    20 minutes ago
  • Success notification: Read success notification title

    This is a success notification description.
    30 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" to limit the title to a single line and truncate any overflow text with ellipses.
    40 minutes ago
  • Success notification: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent quis odio risus. Ut dictum vitae sapien at posuere. Nullam suscipit massa quis lacus pellentesque scelerisque. Donec non maximus neque, quis ornare nunc. Vivamus in nibh sed libero feugiat feugiat. Nulla lacinia rutrum est, a commodo odio vestibulum suscipit. Nullam id quam et quam porttitor interdum quis nec tellus. Vestibulum arcu dui, pulvinar eu tellus in, semper mattis diam. Sed commodo tincidunt lacus non pulvinar. Curabitur tempor molestie vestibulum. Vivamus vel mi dignissim, efficitur neque eget, efficitur massa. Mauris vitae nunc augue. Donec augue lorem, malesuada et quam vitae, volutpat mattis nisi. Nullam nec venenatis ex, quis lobortis purus. Sed nisl dolor, mattis sit amet tincidunt quis, mollis sed massa.

    This example uses ".pf-m-truncate" and sets "--pf-v6-c-notification-drawer__list-item-header-title--max-lines: 2" to limit title to two lines and truncate any overflow text with ellipses.
    50 minutes ago
  • Success notification: Notification drawer item title

    This example uses ".pf-m-no-offset" on the action wrapper to disable the default offset for button alignment.
    55 minutes ago

Accessibility

Attribute
Applied to
Outcome
aria-expanded="false"
.pf-v6-c-notification-drawer__group-toggle
Indicates that the group notification list is hidden.
aria-expanded="true"
.pf-v6-c-notification-drawer__group-toggle
Indicates that the group notification list is visible.
hidden
.pf-v6-c-notification-drawer__list
Indicates that the group notification list is hidden so that it isn't visible in the UI and isn't accessed by assistive technologies.
tabindex="0"
.pf-v6-c-notification-drawer__list-item.pf-m-hoverable
Inserts the hoverable list item into the tab order of the page so that it is focusable.
aria-hidden="true"
.pf-v6-c-notification-drawer__group-toggle-icon > *, .pf-v6-c-notification-drawer__list-item-header-icon > *
Hides icon for assistive technologies.

Usage

Class
Applied to
Outcome
.pf-v6-c-notification-drawer
<div>
Initiates the notification drawer. Required
.pf-v6-c-notification-drawer__header
<div>
Initiates the notification drawer header. Required
.pf-v6-c-notification-drawer__header-title
<h1>
Initiates the notification drawer header title. Required
.pf-v6-c-notification-drawer__header-status
<span>
Initiates the notification drawer header status.
.pf-v6-c-notification-drawer__header-action
<div>
Initiates the notification drawer header action.
.pf-v6-c-notification-drawer__header-action-close
<div>
Initiates the notification drawer header action button.
.pf-v6-c-notification-drawer__body
<div>
Initiates the notification drawer body. Required
.pf-v6-c-notification-drawer__list
<ul>
Initiates a notification list. Required
.pf-v6-c-notification-drawer__list-item
<li>
Initiates a notification list item. Always use with a state modifier class. Required
.pf-v6-c-notification-drawer__list-item-header
<div>
Initiates a notification list item header. Required
.pf-v6-c-notification-drawer__list-item-header-icon
<span>
Initiates a notification list item header icon. Required
.pf-v6-c-notification-drawer__list-item-header-title
<h2>
Initiates a notification list item header title. Required
.pf-v6-c-notification-drawer__list-item-action
<div>
Initiates a notification list item action.
.pf-v6-c-notification-drawer__list-item-description
<div>
Initiates a notification list item description. Required
.pf-v6-c-notification-drawer__list-item-timestamp
<div>
Initiates a notification list item timestamp. Required
.pf-v6-c-notification-drawer__group-list
<div>
Initiates a notification group list. Required when notifications are grouped
.pf-v6-c-notification-drawer__group
<section>
Initiates a notification group. Required
.pf-v6-c-notification-drawer__group-toggle
<button>
Initiates a notification group toggle. Required
.pf-v6-c-notification-drawer__group-title
<div>
Initiates a notification group toggle title. Required
.pf-v6-c-notification-drawer__group-count
<div>
Initiates a notification group toggle count.
.pf-v6-c-notification-drawer__group-icon
<span>
Initiates a notification group toggle icon. Required
.pf-m-custom
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item for the custom state.
.pf-m-info
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item for the info state.
.pf-m-warning
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item for the warning state.
.pf-m-danger
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item for the danger state.
.pf-m-success
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item for the success state.
.pf-m-read
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item for the read state.
.pf-m-hoverable
.pf-v6-c-notification-drawer__list-item
Modifies a notification list item hover states to inidicate it is clickable.
.pf-m-expanded
.pf-v6-c-notification-drawer__group
Modifies a notification group for the expanded state.
.pf-m-truncate
.pf-v6-c-notification-drawer__list-item-header-title
Modifies the title to display a single line and truncate any overflow text with ellipses. Note: you can specify the max number of lines to show by setting the --pf-v6-c-notification-drawer__list-item-header-title--max-lines (the default value is 1).
.pf-m-no-offset
.pf-v6-c-notification-drawer__list-item-action
Modifies a notification item action to remove the vertical offset for action alignment.

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header--PaddingBlockStart
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header--PaddingInlineEnd
1.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header--PaddingBlockEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header--PaddingInlineStart
1.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header--ZIndex
200
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-title--FontSize
1.25rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-title--FontWeight
500
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-title--LineHeight
1.3
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-title--FontFamily
"Red Hat Display", "RedHatDisplay", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-status--MarginInlineStart
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-status--FontWeight
500
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-status--FontSize
0.875rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__header-status--Color
(In light theme) #4d4d4d
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__body--ZIndex
100
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__body--PaddingBlockStart
0
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__body--PaddingBlockEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list--Gap
0.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list--PaddingInlineStart
1.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list--PaddingInlineEnd
1.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--PaddingBlockStart
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--PaddingInlineEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--PaddingBlockEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--PaddingInlineStart
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--BorderWidth
2px
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--BorderRadius
16px
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-info__list-item-header-icon--Color
(In light theme) #5e40be
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-info__list-item--BorderColor
(In light theme) #5e40be
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-warning__list-item-header-icon--Color
(In light theme) #dca614
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-warning__list-item--BorderColor
(In light theme) #dca614
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-danger__list-item-header-icon--Color
(In light theme) #b1380b
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-danger__list-item--BorderColor
(In light theme) #b1380b
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-success__list-item-header-icon--Color
(In light theme) #3d7317
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-success__list-item--BorderColor
(In light theme) #3d7317
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-custom__list-item-header-icon--Color
(In light theme) #147878
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-custom__list-item--BorderColor
(In light theme) #147878
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-read--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-read--BorderWidth
1px
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-read--BorderColor
(In light theme) #c7c7c7
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item--m-hoverable--hover--BackgroundColor
(In light theme) #f2f2f2
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-header--MarginBlockEnd
0.25rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-header-icon--Color
inherit
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-header-icon--MarginInlineEnd
0.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-header-title--FontWeight
500
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-header-title--max-lines
1
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-action--MarginBlockStart
calc(0.5rem * -1)
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-description--MarginBlockEnd
0.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-timestamp--Color
(In light theme) #4d4d4d
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__list-item-timestamp--FontSize
0.875rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group--BorderBlockEndWidth
1px
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group--m-expanded--group--BorderBlockEndColor
(In light theme) #c7c7c7
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group--m-expanded--MinHeight
0
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group--m-expanded--PaddingBlockEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle--PaddingBlockStart
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle--PaddingInlineEnd
1.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle--PaddingBlockEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle--PaddingInlineStart
1.5rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle--OutlineOffset
-0.25rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-title--MarginInlineEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-title--FontSize
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-title--max-lines
1
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-count--MarginInlineEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-icon--MarginInlineEnd
1rem
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-icon--Color
(In light theme) #1f1f1f
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group-toggle-icon--Transition
.2s ease-in 0s
.pf-v6-c-notification-drawer--pf-v6-c-notification-drawer__group--m-expanded__group-toggle-icon--Rotate
90deg
.pf-v6-c-notification-drawer__list-item.pf-m-info--pf-v6-c-notification-drawer__list-item--BorderColor
(In light theme) #5e40be
.pf-v6-c-notification-drawer__list-item.pf-m-info--pf-v6-c-notification-drawer__list-item-header-icon--Color
(In light theme) #5e40be
.pf-v6-c-notification-drawer__list-item.pf-m-warning--pf-v6-c-notification-drawer__list-item--BorderColor
(In light theme) #dca614
.pf-v6-c-notification-drawer__list-item.pf-m-warning--pf-v6-c-notification-drawer__list-item-header-icon--Color
(In light theme) #dca614
.pf-v6-c-notification-drawer__list-item.pf-m-danger--pf-v6-c-notification-drawer__list-item--BorderColor
(In light theme) #b1380b
.pf-v6-c-notification-drawer__list-item.pf-m-danger--pf-v6-c-notification-drawer__list-item-header-icon--Color
(In light theme) #b1380b
.pf-v6-c-notification-drawer__list-item.pf-m-success--pf-v6-c-notification-drawer__list-item--BorderColor
(In light theme) #3d7317
.pf-v6-c-notification-drawer__list-item.pf-m-success--pf-v6-c-notification-drawer__list-item-header-icon--Color
(In light theme) #3d7317
.pf-v6-c-notification-drawer__list-item.pf-m-custom--pf-v6-c-notification-drawer__list-item--BorderColor
(In light theme) #147878
.pf-v6-c-notification-drawer__list-item.pf-m-custom--pf-v6-c-notification-drawer__list-item-header-icon--Color
(In light theme) #147878
.pf-v6-c-notification-drawer__list-item.pf-m-read--pf-v6-c-notification-drawer__list-item--BorderWidth
1px
.pf-v6-c-notification-drawer__list-item.pf-m-read--pf-v6-c-notification-drawer__list-item--BackgroundColor
(In light theme) #ffffff
.pf-v6-c-notification-drawer__list-item.pf-m-read--pf-v6-c-notification-drawer__list-item--BorderColor
(In light theme) #c7c7c7
.pf-v6-c-notification-drawer__list-item-action.pf-m-no-offset--pf-v6-c-notification-drawer__list-item-action--MarginBlockStart
0