[feat]: Update `<pf-v6-dropdown>` for PatternFly v6
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- css, html, typescript
- 領域
- accessibility, design, frontend
研究方向
Start with .claude/ADVICE.md and the existing elements/pf-v5-dropdown/ implementation, then study the referenced PatternFly React v6 Dropdown and the existing pf-v6-menu and pf-v6-menu-toggle elements. Review elements/package.json, eslint.config.js, _snippets/, and framework-integration/ for rename impacts. Done means the implementation, demos, tests, reviews, changeset, and staging/pfv6 target satisfy the checklist.
由索引模型根據 Issue 內容生成。
描述
Summary
Update `` to implement the PatternFly v6 Dropdown component.
Action menu triggered by a toggle button, for presenting a list of actions or links.
Prior Art
| Source | Element | Status |
|---|---|---|
| PFE v4 | `` | Exists |
| cem | `` | Exists |
| cockpit | `` | Exists |
| chickadee | -- | -- |
Sub-components
- `` - Individual action item
- `` - Grouped items with optional title
Requirements
- MUST implement PFv6 visual designs
- MUST provide end-user feature parity with `@patternfly/react-core` Dropdown
- 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
- MAJOR API CHANGE: React v6 Dropdown is a thin wrapper around `Menu` + `MenuToggle`. Its API is fundamentally different from v5. Study the v6 React source carefully before porting.
- React v6 `Dropdown` props: `toggle` (render prop for `MenuToggle`), `popperProps`, `isScrollable`, `isPlain`, `isGrouped`, `minMenuHeight`, `maxMenuHeight`
- React `DropdownItem` is effectively `MenuItem`; `DropdownGroup` is `MenuGroup`; `DropdownList` is `MenuList`
- Floating UI used for positioning (popperProps)
- Consider whether to implement as composition of `` + ``, or as a standalone element; strongly prefer composition
- Keyboard: Arrow keys navigate items, Escape closes, Enter/Space selects
- Focus returns to toggle on close
Checklist
Rename
- Delete `elements/pf-v5-dropdown/`
- 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 於 64 天前認領。 未關閉bug
patternfly/patternfly-elements#3158 · 已指派 1 人 ·
-
chore: evaluate removing isolatedDeclarations from tsconfig可能重新可做 @bennypowers 於 154 天前認領,目前沒有進行中的 PR。 未關閉
patternfly/patternfly-elements#3136 · 1 則留言 · 已指派 1 人 ·
-
chore: update docs scaffolding for v6 elements可能重新可做 @zeroedin 於 154 天前認領,目前沒有進行中的 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
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P2
難度 2/5 1-3 小時 新手友好度 72/100
openclaw/openclaw#168089 · 2 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
✨ enhancement needs-discussion
難度 1/5 1 小時以內 新手友好度 85/100
-
[Bug]: [MCP/CLI] Bare loopback IP addresses (127.0.0.1:port) and hosts with ports fail to navigate due to erroneous scheme inference可能已有人在做 @alok-108 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
microsoft/playwright#43263 ·
維護者通常 1 天內回覆
-
area:studio type:security
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
enhancement good first issue Stellar Wave trivial
難度 2/5 1-3 小時 新手友好度 85/100
StellarCanary/ProtocolCanary-Action#331 ·
維護者通常 1 天內回覆