[feat]: Update `<pf-v6-popover>` for PatternFly v6
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- css, html, typescript
- 領域
- accessibility, design, frontend, web-dev
研究方向
Start with elements/pf-v5-popover/, .claude/ADVICE.md, and the existing tooltip implementation referenced by the Floating UI dependency. Compare the PatternFly website and the listed prior-art elements, then update elements/package.json, eslint.config.js, _snippets/, and framework-integration/ as needed. Done means the PFv6 component, demos, API and accessibility tests, reviews, changeset, and staging/pfv6 targeting checklist are complete.
由索引模型根據 Issue 內容生成。
描述
Summary
Update `` to implement the PatternFly v6 Popover component.
Rich content popup triggered by click, with header, body, footer, and close button. Supports multiple positions and auto-positioning.
Prior Art
| Source | Element | Status |
|---|---|---|
| PFE v4 | `` | Exists |
| cem | `` | Exists |
| cockpit | `` | Exists |
| chickadee | -- | -- |
Requirements
- MUST implement PFv6 visual designs
- MUST provide end-user feature parity with `@patternfly/react-core` Popover
- 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
- Uses Floating UI for positioning (shared dep with tooltip)
- React `position`: 12 values (`top`, `top-start`, `top-end`, `bottom`, `bottom-start`, `bottom-end`, `left`, `left-start`, `left-end`, `right`, `right-start`, `right-end`, `auto`)
- React `headerContent`, `bodyContent`, `footerContent` - use named slots
- React `headerComponent`: `h1`-`h6` - heading level in header slot
- React `hasAutoWidth` - removes max-width constraint; map to `auto-width` attribute
- React `showClose` (default true) - whether to render close button; map to `no-close` attribute (opt-out)
- React `distance`, `minWidth`, `maxWidth` - CSS custom properties preferred
- React `flipBehavior` - Floating UI flip fallback positions
- React `alertSeverityVariant` - adds alert icon to header for status popovers; map to `alert` attribute
- Focus management: focus moves into popover on open; Escape closes and returns focus to trigger
- Trigger element: use `for` attribute or wrap trigger in slot
Checklist
Rename
- Delete `elements/pf-v5-popover/`
- Update `elements/package.json` exports
- Update `eslint.config.js` ignore globs if applicable
- Update docs `_snippets/` and `framework-integration/` references
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`)
- 主要語言
- TypeScript
- 星號
- 395
- 分支
- 107
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
patternfly/patternfly-elements 的其他 Issue
-
[bug] ssr-shims.js uses deprecated globalThis.litSsrCallConnectedCallback可能已有人在做 @zeroedin 於 65 天前認領。 未關閉bug
patternfly/patternfly-elements#3158 · 已指派 1 人 ·
-
chore: evaluate removing isolatedDeclarations from tsconfig可能重新可做 @bennypowers 於 155 天前認領,目前沒有進行中的 PR。 未關閉
patternfly/patternfly-elements#3136 · 1 則留言 · 已指派 1 人 ·
-
chore: update docs scaffolding for v6 elements可能重新可做 @zeroedin 於 155 天前認領,目前沒有進行中的 PR。 未關閉docs
patternfly/patternfly-elements#3131 · 已指派 1 人 ·
-
難度 4/5 3-5 天 新手友好度 55/100
patternfly/patternfly-elements#3122 ·
-
難度 5/5 一週以上 新手友好度 38/100
patternfly/patternfly-elements#3118 ·
查看 patternfly/patternfly-elements 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
bug p3 triaged
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆
-
bug javascript P2-medium python release:v3.1
難度 2/5 1-3 小時 新手友好度 68/100
adrirubio/claude-deck#546 ·
維護者通常 1 天內回覆
-
area: desktop area: website priority: P2 type: feature
難度 2/5 1-3 小時 新手友好度 62/100
appandflow/stim#3411 · 1 則留言 ·
維護者通常 1 天內回覆
-
needs triage
難度 2/5 1-3 小時 新手友好度 65/100
rjsf-team/react-jsonschema-form#5485 ·
維護者通常 2 天內回覆