[feat]: Create `<pf-v6-drag-drop>` element
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 30/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- typescript
- 領域
- accessibility, design, frontend, testing, web-dev
研究方向
Start by reading .claude/ADVICE.md and the @patternfly/react-drag-drop reference, then resolve whether this should be an element, controller, mixin, or native drag-and-drop implementation. Define the public API and accessibility behavior before building the demos and tests. Done means visual and feature parity, documented API coverage, accessibility checks, review commands, linting, a changeset, and a PR targeting staging/pfv6.
由索引模型根據 Issue 內容生成。
描述
Summary
Create a <pf-v6-drag-drop> web component implementing the PatternFly v6 Drag and drop component (@patternfly/react-drag-drop).
Drag-and-drop reordering for lists and multi-zone transfers.
Prior Art
| Source | Element | Status |
|---|---|---|
| PFE v4 | -- | -- |
| cem | -- | -- |
| cockpit | -- | -- |
| chickadee | -- | -- |
Notes
Consider whether this should be an element or a controller/directive that enhances existing list elements. The web component approach may differ significantly from the React HOC/context pattern.
Requirements
- MUST implement PFv6 visual designs
- MUST provide end-user feature parity with
@patternfly/react-drag-drop - 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 uses
@dnd-kitlibrary; web component may use native HTML5 drag-and-drop or@dnd-kitwrapped in a Lit controller - Architectural decision required: element vs Lit controller/mixin vs native drag events
- Sub-components:
DragDropSort(single list reorder),DraggableObject,DragDropContainer(multi-zone),DroppableObject itemsprop for data-driven approach;onDropevent fires with new order- Keyboard reorder: Space to grab, Arrow keys to move, Space/Enter to drop, Escape to cancel
- ARIA:
aria-grabbed(deprecated but still used),aria-dropeffect; announce position viaaria-live - Dragging visual: ghost element, drop zone highlight
pf-v6-data-listdrag variant can use this controllerprefers-reduced-motion: skip animation, still support keyboard reorder- Touch support:
touchstart/touchmove/touchendor pointer events
Checklist
Implementation
- Architectural decision: element vs controller vs native events
- API per
.claude/ADVICE.md - CSS uses v6 tokens, logical properties, nesting
-
@summaryand 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)
-
a11ySnapshotassertions
Reviews
-
/review-apipasses -
/review-demospasses -
/review-a11ypasses -
eslintandstylelintpass
Ship
- Add changeset
- PR targets
staging/pfv6(NOTmain)
- 主要語言
- TypeScript
- 星號
- 397
- 分支
- 109
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
patternfly/patternfly-elements 的其他 Issue
-
[feat]: support non-element `ReactiveControllerHost` in pfe-core controllers可能重新可做 @bennypowers 於 30 天前認領,目前沒有進行中的 PR。 未關閉breaking change feature needs discussion
patternfly/patternfly-elements#3166 · 已指派 1 人 ·
-
accessibility feature priority: low
難度 4/5 1-2 天 新手友好度 57/100
patternfly/patternfly-elements#3165 · 3 則留言 ·
-
[bug] ssr-shims.js uses deprecated globalThis.litSsrCallConnectedCallback可能已有人在做 @zeroedin 於 106 天前認領。 未關閉bug
patternfly/patternfly-elements#3158 · 已指派 1 人 ·
-
chore: evaluate removing isolatedDeclarations from tsconfig可能重新可做 @bennypowers 於 196 天前認領,目前沒有進行中的 PR。 未關閉
patternfly/patternfly-elements#3136 · 1 則留言 · 已指派 1 人 ·
-
chore: update docs scaffolding for v6 elements可能重新可做 @zeroedin 於 196 天前認領,目前沒有進行中的 PR。 未關閉docs
patternfly/patternfly-elements#3131 · 已指派 1 人 ·
查看 patternfly/patternfly-elements 的全部 Issue
相似的 Issue
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offers未關閉catalog provider provider-compatibility
難度 2/5 1-3 小時 新手友好度 62/100
lidge-jun/opencodex#9037 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
effort:S P3 refactor
難度 2/5 1-3 小時 新手友好度 72/100
nightscout/nocturne#3735 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
維護者通常 2 天內回覆