Summary
Update `` to implement the PatternFly v6 Modal component.
Dialog overlay for focused tasks, confirmations, or information display. Supports size variants and custom footers.
Prior Art
| Source |
Element |
Status |
| PFE v4 |
`` |
Exists |
| cem |
`` |
Exists |
| cockpit |
`` |
Exists |
| chickadee |
`` |
Exists |
Notes
- Should use the native `` element internally
- Use `popover` attribute where appropriate for light-dismiss behavior
Requirements
- MUST implement PFv6 visual designs
- MUST provide end-user feature parity with `@patternfly/react-core` Modal
- MAY adjust element API to leverage web platform strengths
- SHOULD maintain CSS custom property theming compatibility
- SHOULD expose useful CSS shadow parts
Element-specific considerations
- React `variant`: `small`, `medium`, `large`, `xlarge`, `default` - map to `size` attribute
- React `isScrollable` - scrollable body with sticky header/footer; map to `scrollable` attribute
- React `title`, `titleIconVariant` (`success`, `danger`, `warning`, `info`, `custom`) - use slot or attribute
- React `actions` - footer button group; use `slot="footer"`
- React `description` - subtitle below title
- React `hasNoBodyWrapper` - removes the default `ModalBoxBody` padding wrapper
- React `disableFocusTrap` - should almost never be needed; do not expose unless truly necessary
- Native `` handles: focus trap, Escape key close, backdrop (`::backdrop` pseudo-element)
- Light-dismiss (click outside): use `dialog.addEventListener("click", ...)` pattern on backdrop
- `showModal()` vs `show()` vs `popover`: use `showModal()` for proper modal semantics (blocks interaction)
- Expose `open` property/attribute for declarative open/close
Checklist
Rename
Implementation
Demos
Tests
Reviews
Ship
Summary
Update `` to implement the PatternFly v6 Modal component.
Dialog overlay for focused tasks, confirmations, or information display. Supports size variants and custom footers.
Prior Art
Notes
Requirements
Element-specific considerations
Checklist
Rename
Implementation
Demos
Tests
Reviews
Ship