Examples
By default, the appendTo
prop of the popover will append to the document body in order to avoid the popover content not being fully visible. Another option is to increase the z-index of the element the popover is appended to to be higher than the z-index of the element that is hiding the popover.
Close popover from content (uncontrolled)
Note: If you use the isVisible prop, either refer to the example above or if you want to use the hide callback from the content then be sure to keep isVisible in-sync.
Width auto
Here the popover goes over the navigation, so the prop appendTo
is set to the documents body.
Popover with icon in the title
Here the popover goes over the navigation, so the prop appendTo
is set to the documents body.
Alert popover
Here the popover goes over the navigation, so the prop appendTo
is set to the documents body.
Custom focus
Use the elementToFocus
property to customize which element inside the Popover receives focus when opened.
Props
Popover
Name | Type | Default | Description |
---|---|---|---|
bodyContentrequired | React.ReactNode | ((hide: () => void) => React.ReactNode) | Body content of the popover. If you want to close the popover after an action within the body content, you can use the isVisible prop for manual control, or you can provide a function which will receive a callback as an argument to hide the popover, i.e. bodyContent={hide => <Button onClick={() => hide()}>Close</Button>} | |
alertSeverityScreenReaderText | string | Text announced by screen reader when alert severity variant is set to indicate severity level. | |
alertSeverityVariant | 'custom' | 'info' | 'warning' | 'success' | 'danger' | Severity variants for an alert popover. This modifies the color of the header to match the severity. | |
animationDuration | number | 300 | The duration of the CSS fade transition animation. |
appendTo | HTMLElement | ((ref?: HTMLElement) => HTMLElement) | 'inline' | () => document.body | The element to append the popover to. Defaults to "inline". |
aria-label | string | '' | Accessible label for the popover, required when header is not present. |
children | ReactElement<any> | The trigger reference element to which the popover is relatively placed to. If you cannot wrap the element with the Popover, you can use the triggerRef prop instead. Usage: <Popover><Button>Reference</Button></Popover> | |
className | string | '' | Additional classes added to the popover. |
closeBtnAriaLabel | string | 'Close' | Accessible label for the close button. |
distance | number | 25 | Distance of the popover to its target. Defaults to 25. |
elementToFocus | HTMLElement | SVGElement | string | The element to focus when the popover becomes visible. By default the first focusable element will receive focus. | |
enableFlip | boolean | true | If true, tries to keep the popover in view by flipping it if necessary. If the position is set to 'auto', this prop is ignored. |
flipBehavior | | 'flip' | ( | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end' )[] | [ 'top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end', 'left-start', 'left-end', 'right-start', 'right-end' ] | The desired position to flip the popover to if the initial position is not possible. By setting this prop to 'flip' it attempts to flip the popover to the opposite side if there is no space. You can also pass an array of positions that determines the flip order. It should contain the initial position followed by alternative positions if that position is unavailable. Example: Initial position is 'top'. Button with popover is in the top right corner. 'flipBehavior' is set to ['top', 'right', 'left']. Since there is no space to the top, it checks if right is available. There's also no space to the right, so it finally shows the popover on the left. |
footerContent | React.ReactNode | ((hide: () => void) => React.ReactNode) | null | Footer content of the popover. If you want to close the popover after an action within the footer content, you can use the isVisible prop for manual control, or you can provide a function which will receive a callback as an argument to hide the popover, i.e. footerContent={hide => <Button onClick={() => hide()}>Close</Button>} |
hasAutoWidth | boolean | false | Removes fixed-width and allows width to be defined by contents. |
hasNoPadding | boolean | false | Allows content to touch edges of popover container. |
headerComponent | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h6' | Sets the heading level to use for the popover header. Defaults to h6. |
headerContent | React.ReactNode | ((hide: () => void) => React.ReactNode) | null | Simple header content to be placed within a title. If you want to close the popover after an action within the header content, you can use the isVisible prop for manual control, or you can provide a function which will receive a callback as an argument to hide the popover, i.e. headerContent={hide => <Button onClick={() => hide()}>Close</Button>} |
headerIcon | React.ReactNode | null | Icon to be displayed in the popover header. * |
hideOnOutsideClick | boolean | true | Hides the popover when a click occurs outside (only works if isVisible is not controlled by the user). |
id | string | Id used as part of the various popover elements (popover-${id}-header/body/footer). | |
isVisible | boolean | null | True to show the popover programmatically. Used in conjunction with the shouldClose prop. By default, the popover child element handles click events automatically. If you want to control this programmatically, the popover will not auto-close if the close button is clicked, the escape key is used, or if a click occurs outside the popover. Instead, the consumer is responsible for closing the popover themselves by adding a callback listener for the shouldClose prop. |
maxWidth | string | popoverMaxWidth && popoverMaxWidth.value | Maximum width of the popover (default 18.75rem). |
minWidth | string | popoverMinWidth && popoverMinWidth.value | Minimum width of the popover (default 6.25rem). |
onHidden | () => void | (): void => null | Lifecycle function invoked when the popover has fully transitioned out. |
onHide | (event: MouseEvent | KeyboardEvent) => void | (): void => null | Lifecycle function invoked when the popover begins to transition out. |
onMount | () => void | (): void => null | Lifecycle function invoked when the popover has been mounted to the DOM. |
onShow | (event: MouseEvent | KeyboardEvent) => void | (): void => null | Lifecycle function invoked when the popover begins to transition in. |
onShown | () => void | (): void => null | Lifecycle function invoked when the popover has fully transitioned in. |
position | | PopoverPosition | 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end' | 'top' | Popover position. Note: With the enableFlip property set to true, it will change the position if there is not enough space for the starting position. The behavior of where it flips to can be controlled through the flipBehavior property. |
shouldClose | (event: MouseEvent | KeyboardEvent, hideFunction?: () => void) => void | (): void => null | Callback function that is only invoked when isVisible is also controlled. Called when the popover close button is clicked, the enter key was used on it, or the escape key is used. |
shouldOpen | (event: MouseEvent | KeyboardEvent, showFunction?: () => void) => void | (): void => null | Callback function that is only invoked when isVisible is also controlled. Called when the enter key is used on the focused trigger. |
showClose | boolean | true | Flag indicating whether the close button should be shown. |
triggerAction | 'click' | 'hover' | 'click' | Sets an interaction to open popover, defaults to "click" |
triggerRef | HTMLElement | (() => HTMLElement) | React.RefObject<any> | The trigger reference element to which the popover is relatively placed to. If you can wrap the element with the popover, you can use the children prop instead, or both props together. When passed along with the trigger prop, the div element that wraps the trigger will be removed. Usage: <Popover triggerRef={() => document.getElementById('reference-element')} /> | |
withFocusTrap | boolean | Whether to trap focus in the popover. | |
zIndex | number | 9999 | The z-index of the popover. |
CSS variables
Expand or collapse column | Selector | Variable | Value | |
---|---|---|---|---|
.pf-v5-c-popover | --pf-v5-c-popover--FontSize | 0.875rem | ||
--pf-v5-c-popover--FontSize --pf-v5-global--FontSize--sm $pf-v5-global--FontSize--sm pf-font-prem(14px) 0.875rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover--MinWidth | calc(1rem + 1rem + 18.75rem) | ||
--pf-v5-c-popover--MinWidth calc(--pf-v5-c-popover__content--PaddingLeft + --pf-v5-c-popover__content--PaddingRight + 18.75rem) calc(--pf-v5-global--spacer--md + --pf-v5-global--spacer--md + 18.75rem) calc($pf-v5-global--spacer--md + $pf-v5-global--spacer--md + 18.75rem) calc(pf-size-prem(16px) + pf-size-prem(16px) + 18.75rem) calc(1rem + 1rem + 18.75rem) | ||||
.pf-v5-c-popover | --pf-v5-c-popover--MaxWidth | calc(1rem + 1rem + 18.75rem) | ||
--pf-v5-c-popover--MaxWidth calc(--pf-v5-c-popover__content--PaddingLeft + --pf-v5-c-popover__content--PaddingRight + 18.75rem) calc(--pf-v5-global--spacer--md + --pf-v5-global--spacer--md + 18.75rem) calc($pf-v5-global--spacer--md + $pf-v5-global--spacer--md + 18.75rem) calc(pf-size-prem(16px) + pf-size-prem(16px) + 18.75rem) calc(1rem + 1rem + 18.75rem) | ||||
.pf-v5-c-popover | --pf-v5-c-popover--BoxShadow | 0 0.5rem 1rem 0 rgba(3, 3, 3, 0.16), 0 0 0.375rem 0 rgba(3, 3, 3, 0.08) | ||
--pf-v5-c-popover--BoxShadow --pf-v5-global--BoxShadow--lg $pf-v5-global--BoxShadow--lg 0 pf-size-prem(8px) pf-size-prem(16px) 0 rgba($pf-v5-color-black-1000, .16), 0 0 pf-size-prem(6px) 0 rgba($pf-v5-color-black-1000, .08) 0 pf-size-prem(8px) pf-size-prem(16px) 0 rgba(#030303, .16), 0 0 pf-size-prem(6px) 0 rgba(#030303, .08) 0 0.5rem 1rem 0 rgba(3, 3, 3, 0.16), 0 0 0.375rem 0 rgba(3, 3, 3, 0.08) | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-danger__title-icon--Color | #c9190b | ||
--pf-v5-c-popover--m-danger__title-icon--Color --pf-v5-global--danger-color--100 $pf-v5-global--danger-color--100 $pf-v5-color-red-100 #c9190b | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-warning__title-icon--Color | #f0ab00 | ||
--pf-v5-c-popover--m-warning__title-icon--Color --pf-v5-global--warning-color--100 $pf-v5-global--warning-color--100 $pf-v5-color-gold-400 #f0ab00 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-success__title-icon--Color | #3e8635 | ||
--pf-v5-c-popover--m-success__title-icon--Color --pf-v5-global--success-color--100 $pf-v5-global--success-color--100 $pf-v5-color-green-500 #3e8635 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-info__title-icon--Color | #2b9af3 | ||
--pf-v5-c-popover--m-info__title-icon--Color --pf-v5-global--info-color--100 $pf-v5-global--info-color--100 $pf-v5-color-blue-300 #2b9af3 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-custom__title-icon--Color | #009596 | ||
--pf-v5-c-popover--m-custom__title-icon--Color --pf-v5-global--custom-color--200 $pf-v5-global--custom-color--200 $pf-v5-color-cyan-300 #009596 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-danger__title-text--Color | #a30000 | ||
--pf-v5-c-popover--m-danger__title-text--Color --pf-v5-global--danger-color--200 $pf-v5-global--danger-color--200 $pf-v5-color-red-200 #a30000 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-warning__title-text--Color | #795600 | ||
--pf-v5-c-popover--m-warning__title-text--Color --pf-v5-global--warning-color--200 $pf-v5-global--warning-color--200 $pf-v5-color-gold-600 #795600 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-success__title-text--Color | #1e4f18 | ||
--pf-v5-c-popover--m-success__title-text--Color --pf-v5-global--success-color--200 $pf-v5-global--success-color--200 $pf-v5-color-green-600 #1e4f18 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-info__title-text--Color | #002952 | ||
--pf-v5-c-popover--m-info__title-text--Color --pf-v5-global--info-color--200 $pf-v5-global--info-color--200 $pf-v5-color-blue-600 #002952 | ||||
.pf-v5-c-popover | --pf-v5-c-popover--m-custom__title-text--Color | #003737 | ||
--pf-v5-c-popover--m-custom__title-text--Color --pf-v5-global--custom-color--300 $pf-v5-global--custom-color--300 $pf-v5-color-cyan-500 #003737 | ||||
.pf-v5-c-popover | --pf-v5-c-popover__content--BackgroundColor | #fff | ||
--pf-v5-c-popover__content--BackgroundColor --pf-v5-global--BackgroundColor--100 $pf-v5-global--BackgroundColor--100 $pf-v5-color-white #fff | ||||
.pf-v5-c-popover | --pf-v5-c-popover__content--PaddingTop | 1rem | ||
--pf-v5-c-popover__content--PaddingTop --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__content--PaddingRight | 1rem | ||
--pf-v5-c-popover__content--PaddingRight --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__content--PaddingBottom | 1rem | ||
--pf-v5-c-popover__content--PaddingBottom --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__content--PaddingLeft | 1rem | ||
--pf-v5-c-popover__content--PaddingLeft --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--Width | 1.5625rem | ||
--pf-v5-c-popover__arrow--Width --pf-v5-global--arrow--width-lg $pf-v5-global--arrow--width-lg pf-font-prem(25px) 1.5625rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--Height | 1.5625rem | ||
--pf-v5-c-popover__arrow--Height --pf-v5-global--arrow--width-lg $pf-v5-global--arrow--width-lg pf-font-prem(25px) 1.5625rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--BoxShadow | 0 0.5rem 1rem 0 rgba(3, 3, 3, 0.16), 0 0 0.375rem 0 rgba(3, 3, 3, 0.08) | ||
--pf-v5-c-popover__arrow--BoxShadow --pf-v5-global--BoxShadow--lg $pf-v5-global--BoxShadow--lg 0 pf-size-prem(8px) pf-size-prem(16px) 0 rgba($pf-v5-color-black-1000, .16), 0 0 pf-size-prem(6px) 0 rgba($pf-v5-color-black-1000, .08) 0 pf-size-prem(8px) pf-size-prem(16px) 0 rgba(#030303, .16), 0 0 pf-size-prem(6px) 0 rgba(#030303, .08) 0 0.5rem 1rem 0 rgba(3, 3, 3, 0.16), 0 0 0.375rem 0 rgba(3, 3, 3, 0.08) | ||||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--BackgroundColor | #fff | ||
--pf-v5-c-popover__arrow--BackgroundColor --pf-v5-global--BackgroundColor--100 $pf-v5-global--BackgroundColor--100 $pf-v5-color-white #fff | ||||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-top--TranslateX | -50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-top--TranslateY | 50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-top--Rotate | 45deg | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-right--TranslateX | -50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-right--TranslateY | -50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-right--Rotate | 45deg | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-bottom--TranslateX | -50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-bottom--TranslateY | -50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-bottom--Rotate | 45deg | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-left--TranslateX | 50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-left--TranslateY | -50% | ||
.pf-v5-c-popover | --pf-v5-c-popover__arrow--m-left--Rotate | 45deg | ||
.pf-v5-c-popover | --pf-v5-c-popover__close--Top | calc(1rem - 0.375rem) | ||
--pf-v5-c-popover__close--Top calc(--pf-v5-c-popover__content--PaddingTop - --pf-v5-global--spacer--form-element) calc(--pf-v5-global--spacer--md - $pf-v5-global--spacer--form-element) calc($pf-v5-global--spacer--md - $pf-v5-global--spacer--form-element) calc(pf-size-prem(16px) - pf-size-prem(6px)) calc(1rem - 0.375rem) | ||||
.pf-v5-c-popover | --pf-v5-c-popover__close--Right | calc(1rem - 1rem) | ||
--pf-v5-c-popover__close--Right calc(--pf-v5-c-popover__content--PaddingRight - --pf-v5-global--spacer--md) calc(--pf-v5-global--spacer--md - $pf-v5-global--spacer--md) calc($pf-v5-global--spacer--md - $pf-v5-global--spacer--md) calc(pf-size-prem(16px) - pf-size-prem(16px)) calc(1rem - 1rem) | ||||
.pf-v5-c-popover | --pf-v5-c-popover__close--sibling--PaddingRight | 3rem | ||
--pf-v5-c-popover__close--sibling--PaddingRight --pf-v5-global--spacer--2xl $pf-v5-global--spacer--2xl pf-size-prem(48px) 3rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__header--MarginBottom | 0.5rem | ||
--pf-v5-c-popover__header--MarginBottom --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__title-text--LineHeight | 1.5 | ||
--pf-v5-c-popover__title-text--LineHeight --pf-v5-global--LineHeight--md $pf-v5-global--LineHeight--md 1.5 | ||||
.pf-v5-c-popover | --pf-v5-c-popover__title-text--FontFamily | '"RedHatDisplay", helvetica, arial, sans-serif' | ||
--pf-v5-c-popover__title-text--FontFamily --pf-v5-global--FontFamily--heading $pf-v5-global--FontFamily--heading '"RedHatDisplay", helvetica, arial, sans-serif' | ||||
.pf-v5-c-popover | --pf-v5-c-popover__title-text--FontSize | 1rem | ||
--pf-v5-c-popover__title-text--FontSize --pf-v5-global--FontSize--md $pf-v5-global--FontSize--md pf-font-prem(16px) 1rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__title-icon--MarginRight | 0.5rem | ||
--pf-v5-c-popover__title-icon--MarginRight --pf-v5-global--spacer--sm $pf-v5-global--spacer--sm pf-size-prem(8px) 0.5rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__title-icon--Color | #151515 | ||
--pf-v5-c-popover__title-icon--Color --pf-v5-global--Color--100 $pf-v5-global--Color--100 $pf-v5-color-black-900 #151515 | ||||
.pf-v5-c-popover | --pf-v5-c-popover__title-icon--FontSize | 1rem | ||
--pf-v5-c-popover__title-icon--FontSize --pf-v5-global--FontSize--md $pf-v5-global--FontSize--md pf-font-prem(16px) 1rem | ||||
.pf-v5-c-popover | --pf-v5-c-popover__footer--MarginTop | 1rem | ||
--pf-v5-c-popover__footer--MarginTop --pf-v5-global--spacer--md $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
.pf-v5-c-popover.pf-m-no-padding | --pf-v5-c-popover__content--PaddingTop | 0px | ||
.pf-v5-c-popover.pf-m-no-padding | --pf-v5-c-popover__content--PaddingRight | 0px | ||
.pf-v5-c-popover.pf-m-no-padding | --pf-v5-c-popover__content--PaddingBottom | 0px | ||
.pf-v5-c-popover.pf-m-no-padding | --pf-v5-c-popover__content--PaddingLeft | 0px | ||
.pf-v5-c-popover.pf-m-width-auto | --pf-v5-c-popover--MinWidth | auto | ||
.pf-v5-c-popover.pf-m-width-auto | --pf-v5-c-popover--MaxWidth | none | ||
.pf-v5-c-popover:is(.pf-m-top, .pf-m-top-left, .pf-m-top-right) | --pf-v5-c-popover__arrow--Bottom | undefined, 0 | ||
--pf-v5-c-popover__arrow--Bottom var(--pf-v5-c-popover--m-top--Bottom, 0) undefined, 0 | ||||
.pf-v5-c-popover:is(.pf-m-top, .pf-m-top-left, .pf-m-top-right) | --pf-v5-c-popover__arrow--Left | undefined, 50% | ||
--pf-v5-c-popover__arrow--Left var(--pf-v5-c-popover--m-top--Left, 50%) undefined, 50% | ||||
.pf-v5-c-popover:is(.pf-m-top, .pf-m-top-left, .pf-m-top-right) | --pf-v5-c-popover__arrow--TranslateX | -50% | ||
--pf-v5-c-popover__arrow--TranslateX --pf-v5-c-popover__arrow--m-top--TranslateX -50% | ||||
.pf-v5-c-popover:is(.pf-m-top, .pf-m-top-left, .pf-m-top-right) | --pf-v5-c-popover__arrow--TranslateY | 50% | ||
--pf-v5-c-popover__arrow--TranslateY --pf-v5-c-popover__arrow--m-top--TranslateY 50% | ||||
.pf-v5-c-popover:is(.pf-m-top, .pf-m-top-left, .pf-m-top-right) | --pf-v5-c-popover__arrow--Rotate | 45deg | ||
--pf-v5-c-popover__arrow--Rotate --pf-v5-c-popover__arrow--m-top--Rotate 45deg | ||||
.pf-v5-c-popover:is(.pf-m-bottom, .pf-m-bottom-left, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--Top | undefined, 0 | ||
--pf-v5-c-popover__arrow--Top var(--pf-v5-c-popover--m-bottom--Top, 0) undefined, 0 | ||||
.pf-v5-c-popover:is(.pf-m-bottom, .pf-m-bottom-left, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--Left | undefined, 50% | ||
--pf-v5-c-popover__arrow--Left var(--pf-v5-c-popover--m-bottom--Left, 50%) undefined, 50% | ||||
.pf-v5-c-popover:is(.pf-m-bottom, .pf-m-bottom-left, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--TranslateX | -50% | ||
--pf-v5-c-popover__arrow--TranslateX --pf-v5-c-popover__arrow--m-bottom--TranslateX -50% | ||||
.pf-v5-c-popover:is(.pf-m-bottom, .pf-m-bottom-left, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--TranslateY | -50% | ||
--pf-v5-c-popover__arrow--TranslateY --pf-v5-c-popover__arrow--m-bottom--TranslateY -50% | ||||
.pf-v5-c-popover:is(.pf-m-bottom, .pf-m-bottom-left, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--Rotate | 45deg | ||
--pf-v5-c-popover__arrow--Rotate --pf-v5-c-popover__arrow--m-bottom--Rotate 45deg | ||||
.pf-v5-c-popover:is(.pf-m-left, .pf-m-left-top, .pf-m-left-bottom) | --pf-v5-c-popover__arrow--Top | undefined, 50% | ||
--pf-v5-c-popover__arrow--Top var(--pf-v5-c-popover--m-left--Top, 50%) undefined, 50% | ||||
.pf-v5-c-popover:is(.pf-m-left, .pf-m-left-top, .pf-m-left-bottom) | --pf-v5-c-popover__arrow--Right | undefined, 0 | ||
--pf-v5-c-popover__arrow--Right var(--pf-v5-c-popover--m-left--Right, 0) undefined, 0 | ||||
.pf-v5-c-popover:is(.pf-m-left, .pf-m-left-top, .pf-m-left-bottom) | --pf-v5-c-popover__arrow--TranslateX | 50% | ||
--pf-v5-c-popover__arrow--TranslateX --pf-v5-c-popover__arrow--m-left--TranslateX 50% | ||||
.pf-v5-c-popover:is(.pf-m-left, .pf-m-left-top, .pf-m-left-bottom) | --pf-v5-c-popover__arrow--TranslateY | -50% | ||
--pf-v5-c-popover__arrow--TranslateY --pf-v5-c-popover__arrow--m-left--TranslateY -50% | ||||
.pf-v5-c-popover:is(.pf-m-left, .pf-m-left-top, .pf-m-left-bottom) | --pf-v5-c-popover__arrow--Rotate | 45deg | ||
--pf-v5-c-popover__arrow--Rotate --pf-v5-c-popover__arrow--m-left--Rotate 45deg | ||||
.pf-v5-c-popover:is(.pf-m-right, .pf-m-right-top, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--Top | undefined, 50% | ||
--pf-v5-c-popover__arrow--Top var(--pf-v5-c-popover--m-right--Top, 50%) undefined, 50% | ||||
.pf-v5-c-popover:is(.pf-m-right, .pf-m-right-top, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--Left | undefined, 0 | ||
--pf-v5-c-popover__arrow--Left var(--pf-v5-c-popover--m-right--Left, 0) undefined, 0 | ||||
.pf-v5-c-popover:is(.pf-m-right, .pf-m-right-top, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--TranslateX | -50% | ||
--pf-v5-c-popover__arrow--TranslateX --pf-v5-c-popover__arrow--m-right--TranslateX -50% | ||||
.pf-v5-c-popover:is(.pf-m-right, .pf-m-right-top, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--TranslateY | -50% | ||
--pf-v5-c-popover__arrow--TranslateY --pf-v5-c-popover__arrow--m-right--TranslateY -50% | ||||
.pf-v5-c-popover:is(.pf-m-right, .pf-m-right-top, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--Rotate | 45deg | ||
--pf-v5-c-popover__arrow--Rotate --pf-v5-c-popover__arrow--m-right--Rotate 45deg | ||||
.pf-v5-c-popover:is(.pf-m-left-top, .pf-m-right-top) | --pf-v5-c-popover__arrow--Top | 0 | ||
.pf-v5-c-popover:is(.pf-m-left-top, .pf-m-right-top) | --pf-v5-c-popover__arrow--TranslateY | 50% | ||
--pf-v5-c-popover__arrow--TranslateY --pf-v5-c-popover__arrow--m-top--TranslateY 50% | ||||
.pf-v5-c-popover:is(.pf-m-left-bottom, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--Top | auto | ||
.pf-v5-c-popover:is(.pf-m-left-bottom, .pf-m-right-bottom) | --pf-v5-c-popover__arrow--Bottom | 0 | ||
.pf-v5-c-popover:is(.pf-m-top-left, .pf-m-bottom-left) | --pf-v5-c-popover__arrow--Left | 0 | ||
.pf-v5-c-popover:is(.pf-m-top-left, .pf-m-bottom-left) | --pf-v5-c-popover__arrow--TranslateX | 50% | ||
--pf-v5-c-popover__arrow--TranslateX --pf-v5-c-popover__arrow--m-left--TranslateX 50% | ||||
.pf-v5-c-popover:is(.pf-m-top-right, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--Right | 0 | ||
.pf-v5-c-popover:is(.pf-m-top-right, .pf-m-bottom-right) | --pf-v5-c-popover__arrow--Left | auto | ||
.pf-v5-c-popover.pf-m-danger | --pf-v5-c-popover__title-icon--Color | #c9190b | ||
--pf-v5-c-popover__title-icon--Color --pf-v5-c-popover--m-danger__title-icon--Color --pf-v5-global--danger-color--100 $pf-v5-global--danger-color--100 $pf-v5-color-red-100 #c9190b | ||||
.pf-v5-c-popover.pf-m-danger | --pf-v5-c-popover__title-text--Color | #a30000 | ||
--pf-v5-c-popover__title-text--Color --pf-v5-c-popover--m-danger__title-text--Color --pf-v5-global--danger-color--200 $pf-v5-global--danger-color--200 $pf-v5-color-red-200 #a30000 | ||||
.pf-v5-c-popover.pf-m-warning | --pf-v5-c-popover__title-icon--Color | #f0ab00 | ||
--pf-v5-c-popover__title-icon--Color --pf-v5-c-popover--m-warning__title-icon--Color --pf-v5-global--warning-color--100 $pf-v5-global--warning-color--100 $pf-v5-color-gold-400 #f0ab00 | ||||
.pf-v5-c-popover.pf-m-warning | --pf-v5-c-popover__title-text--Color | #795600 | ||
--pf-v5-c-popover__title-text--Color --pf-v5-c-popover--m-warning__title-text--Color --pf-v5-global--warning-color--200 $pf-v5-global--warning-color--200 $pf-v5-color-gold-600 #795600 | ||||
.pf-v5-c-popover.pf-m-success | --pf-v5-c-popover__title-icon--Color | #3e8635 | ||
--pf-v5-c-popover__title-icon--Color --pf-v5-c-popover--m-success__title-icon--Color --pf-v5-global--success-color--100 $pf-v5-global--success-color--100 $pf-v5-color-green-500 #3e8635 | ||||
.pf-v5-c-popover.pf-m-success | --pf-v5-c-popover__title-text--Color | #1e4f18 | ||
--pf-v5-c-popover__title-text--Color --pf-v5-c-popover--m-success__title-text--Color --pf-v5-global--success-color--200 $pf-v5-global--success-color--200 $pf-v5-color-green-600 #1e4f18 | ||||
.pf-v5-c-popover.pf-m-custom | --pf-v5-c-popover__title-icon--Color | #009596 | ||
--pf-v5-c-popover__title-icon--Color --pf-v5-c-popover--m-custom__title-icon--Color --pf-v5-global--custom-color--200 $pf-v5-global--custom-color--200 $pf-v5-color-cyan-300 #009596 | ||||
.pf-v5-c-popover.pf-m-custom | --pf-v5-c-popover__title-text--Color | #003737 | ||
--pf-v5-c-popover__title-text--Color --pf-v5-c-popover--m-custom__title-text--Color --pf-v5-global--custom-color--300 $pf-v5-global--custom-color--300 $pf-v5-color-cyan-500 #003737 | ||||
.pf-v5-c-popover.pf-m-info | --pf-v5-c-popover__title-icon--Color | #2b9af3 | ||
--pf-v5-c-popover__title-icon--Color --pf-v5-c-popover--m-info__title-icon--Color --pf-v5-global--info-color--100 $pf-v5-global--info-color--100 $pf-v5-color-blue-300 #2b9af3 | ||||
.pf-v5-c-popover.pf-m-info | --pf-v5-c-popover__title-text--Color | #002952 | ||
--pf-v5-c-popover__title-text--Color --pf-v5-c-popover--m-info__title-text--Color --pf-v5-global--info-color--200 $pf-v5-global--info-color--200 $pf-v5-color-blue-600 #002952 |
View source on GitHub