Examples

Basic

<div
  class="pf-v6-c-about-modal-box"
  style="--pf-v6-c-about-modal-box--BackgroundImage: url(/assets/images/pf-background.svg)"
>
  <div class="pf-v6-c-about-modal-box__brand">
    <img
      class="pf-v6-c-about-modal-box__brand-image"
      src="/assets/images/PF-IconLogo.svg"
      alt="PatternFly brand logo"
    />
  </div>
  <div class="pf-v6-c-about-modal-box__close">
    <button
      class="pf-v6-c-button pf-m-plain"
      type="button"
      aria-label="Close dialog"
    >
      <span class="pf-v6-c-button__icon">
        <svg
          class="pf-v6-svg"
          viewBox="0 0 20 20"
          fill="currentColor"
          aria-hidden="true"
          role="img"
          width="1em"
          height="1em"
        >
          <path
            d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"
          />
        </svg>
      </span>
    </button>
  </div>
  <div class="pf-v6-c-about-modal-box__header">
    <h1 class="pf-v6-c-title pf-m-4xl" id="about-modal-title">Product name</h1>
  </div>
  <div class="pf-v6-c-about-modal-box__content">
    <div class="pf-v6-c-about-modal-box__body">content</div>
    <p
      class="pf-v6-c-about-modal-box__strapline"
    >Trademark and copyright information here</p>
  </div>
</div>

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

AttributeApplies toOutcome
aria-label="Close Dialog".pf-v6-c-modal-box__close .pf-v6-c-buttonProvides an accessible name for the close button as it uses an icon instead of text. Required

Usage

ClassApplied toOutcome
.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-boxSets the background image for the about modal.

CSS variables