Skip to content

chore: updates to support new CSS - #1

Open
mcoker wants to merge 1 commit into
GAUNSD:gmurcia/modal-backdrop-animationsfrom
mcoker:modal-backrop-animations-coker
Open

chore: updates to support new CSS#1
mcoker wants to merge 1 commit into
GAUNSD:gmurcia/modal-backdrop-animationsfrom
mcoker:modal-backrop-animations-coker

Conversation

@mcoker

@mcoker mcoker commented Sep 8, 2026

Copy link
Copy Markdown

Hey! I added CSS support for the backdrop and modal animations, and did so working off of this branch. Here are the changes I made to get it working. Some helpful links:

The core PR with the CSS changes: patternfly/patternfly#8584
The parent PR this PR is against: patternfly#12552

Primarily I changed the modal and backdrop back to conditionally rendering, since I'm not sure if always rendering them in the DOM might create some sort of z-index/stacking order issues.

One question is about the backdrop component. Backdrop doesn't have the equivalent of modal's isOpen, so we/users must be dynamically rendering the component, which means everyone will need to hook into the transitionEnd event (or set a manual setTimeout() or whatever) to allow the backdrop's hide/close animation to finish before unmounting. I wonder if it should have something like that? Not as a part of this feature, but in the future to make the backdrop more flexible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants