Skip to content

[feat]: Create <pf-v6-alert-group> element #2928

@zeroedin

Description

@zeroedin

Summary

Create a <pf-v6-alert-group> web component implementing the PatternFly v6 Alert group functionality.

Container for stacking and positioning multiple alerts, with toast and inline variants.

Prior Art

Source Element Status
PFE v4 -- --
cem -- --
cockpit -- --
chickadee -- --

Notes

  • Blocked on pf-v6-alert - port that first
  • In PFv6, alert group functionality is closely integrated with alert; review React source to determine if a separate element is still warranted

Requirements

  • MUST implement PFv6 visual designs
  • MUST provide end-user feature parity with @patternfly/react-core AlertGroup
  • 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

  • isToast: positions group as fixed overlay (top-right by default)
  • isLiveRegion / hasAnimations: ARIA live region for dynamically added alerts
  • When isLiveRegion: render <div role="list" aria-live="polite" aria-atomic="false">; alerts within are role="listitem"
  • Toast group: position: fixed, z-index above page content, respects prefers-reduced-motion for enter/exit animations
  • overflowMessage prop: collapses excess alerts into a "Show more" button
  • Slotted <pf-v6-alert> children
  • No keyboard trap needed (alerts are non-modal)

Checklist

Implementation

  • API per .claude/ADVICE.md
  • CSS uses v6 tokens, logical properties, nesting
  • @summary and JSDoc on element class

Demos

  • Demos match patternfly.org naming/structure
  • CSS custom properties match computed styles from patternfly.org (Chrome MCP)
  • Visual parity verified via Chrome MCP

Tests

  • Public API covered (attributes, properties, events, slots)
  • a11ySnapshot assertions

Reviews

  • /review-api passes
  • /review-demos passes
  • /review-a11y passes
  • eslint and stylelint pass

Ship

  • Add changeset
  • PR targets staging/pfv6 (NOT main)

Metadata

Metadata

Assignees

No one assigned

    Labels

    1:1Aligning components with PatternFly v4blockedWaiting on some other team or processgood 1st issueGood for newcomers to the project; requires at least an introductory knowledge of the languagepriority: lowSeverity level: 3

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions