Examples
Documentation
In order to add a background image, set the --pf-v6-c-about-modal-box--BackgroundImage
CSS variable to the path of the image. For example: --pf-v6-c-about-modal-box--BackgroundImage: url(custom/path/image.jpg);
Accessibility
Attribute | Applies to | Outcome |
---|---|---|
aria-label="Close Dialog" | .pf-v6-c-modal-box__close .pf-v6-c-button | Provides an accessible name for the close button as it uses an icon instead of text. Required |
Usage
Class | Applied to | Outcome |
---|---|---|
.pf-v6-c-about-modal-box | <div> , <article> | Initiates a modal box. |
.pf-v6-c-about-modal-box__brand | <div> | Initiates a modal box brand cell. |
.pf-v6-c-about-modal-box__brand-image | <img> | Initiates a modal box brand image. |
.pf-v6-c-about-modal-box__close | <div> | Initiates a modal box close cell. |
.pf-v6-c-about-modal-box__header | <div> , <header> | Initiates a modal box header cell. |
.pf-v6-c-about-modal-box__content | <div> | Initiates a modal box content cell. |
.pf-v6-c-about-modal-box__body | <div> | Initiates a modal box body cell. |
.pf-v6-c-about-modal-box__strapline | <p> | Initiates a modal box strapline cell. |
--pf-v6-c-about-modal-box--BackgroundImage | .pf-v6-c-about-modal-box | Sets the background image for the about modal. |
CSS variables
Expand or collapse column | Selector | Variable | Value | |
---|---|---|---|---|
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundImage | none | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundColor | (In light theme) #ffffff | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundPosition | bottom right | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundSize--min-width | 200px | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundSize--width | 60% | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundSize--max-width | 600px | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundSize | clamp(200px, 60%, 600px) | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--Height | 100% | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--lg--Height | 47.625rem | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--Width | 100% | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--sm--GridTemplateColumns | 5fr 1fr | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--lg--GridTemplateColumns | 1fr .6fr | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--PaddingBlockStart | 3rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--PaddingInlineEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--PaddingInlineStart | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--PaddingBlockEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--sm--PaddingInlineEnd | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--sm--PaddingInlineStart | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand--sm--PaddingBlockEnd | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--ZIndex | 600 | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--PaddingBlockStart | 3rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--PaddingInlineEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--PaddingBlockEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--sm--PaddingBlockEnd | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--lg--PaddingInlineEnd | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__close--c-button--FontSize | 1rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__brand-image--Height | 2.3125rem | ||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__header--PaddingInlineEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__header--PaddingBlockEnd | 0.5rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__header--PaddingInlineStart | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__header--sm--PaddingInlineEnd | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__header--sm--PaddingInlineStart | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__strapline--PaddingBlockStart | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__strapline--FontSize | 0.75rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__strapline--Color | (In light theme) #4d4d4d | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__strapline--sm--PaddingBlockStart | 3rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--MarginBlockStart | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--MarginInlineEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--MarginBlockEnd | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--MarginInlineStart | 2rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--sm--MarginBlockStart | 3rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--sm--MarginInlineEnd | 4rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--sm--MarginBlockEnd | 3rem | ||
| ||||
:where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box__content--sm--MarginInlineStart | 4rem | ||
| ||||
:where(.pf-v6-m-dir-rtl, [dir=rtl]) :where(:root, .pf-v6-c-about-modal-box) | --pf-v6-c-about-modal-box--BackgroundPosition | bottom left |