HTML

Backdrop

A backdrop is used to screen the main content of a page when a modal overlay is opened. It prevents the user from doing other work on the page until the modal is dismissed. Related design guidelines: Modal

ExamplesDocumentationCSS Variables

Examples

Backdrop example

This Preview can only be accessed in full page mode.
Copied to clipboard

Documentation

Overview

This component puts a backdrop over the entire viewport.

Usage

Class Applied To Outcome
.pf-c-backdrop <div> Initiates backdrop. Required
.pf-c-backdrop__open <body> Lock scrolling when backdrop is active. This class should be set on <body> while backdrop is active and removed while backdrop is inactive. Required

CSS Variables

--pf-c-backdrop--BackdropFilterc_backdrop_BackdropFilterblur(10px)
--pf-c-backdrop--Colorc_backdrop_Colorrgba(3,3,3,.62)
--pf-c-backdrop--ZIndexc_backdrop_ZIndex600