Bug - Notification Drawer should allow focus trap
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 48/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 冷清
- 技術堆疊
- react, typescript
研究方向
從所連結的 PatternFly 頁面上的 React notification-drawer 基本示範開始,並查看所連結的 focus-management 範例。驗證 drawer 目前的鍵盤行為,然後確保關閉時 focus 返回 notification badge,並在開啟的 drawer 內循環;在示範中驗證這兩種行為。
由索引模型根據 Issue 內容生成。
描述
Describe the problem
A clear and concise description of the problem. Which pages are affected?
When using a keyboard to navigate the page in https://www.patternfly.org/components/notification-drawer/react-demos/basic/, keyboard focus is given to the first button or link in the drawer, which is correct.
However, when a user goes and closes the notification drawer, keyboard focus does not return to the notification button, and seems to return to the browser chrome, which is disorienting.
Moreover, after tabbing to the last item in the notification drawer, the next tab press should loop back to the first item in the notification drawer; however, this is not done.
Expected behavior
A clear and concise description of the expected behavior.
In the demo, keyboard focus should be returned to the notification badge after the notification drawer is closed, and the keyboard focus should be trapped entirely within the notification drawer when it is open.
Screenshots
If applicable, add screenshots to help explain the issue.
Any other information?
See this blog post:
https://codepen.io/unleashalicia/pen/YzXrJBN
https://knowbility.org/blog/2020/accessible-slide-menus
Jira Issue: PF-1354
- 主要語言
- TypeScript
- 星號
- 862
- 分支
- 392
- 平均合併
- 4 天 8 小時
- 30 天內合併 PR
- 9
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
patternfly/patternfly-react 的其他 Issue
-
PF Team
難度 2/5 1-3 小時 新手友好度 68/100
patternfly/patternfly-react#12651 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
patternfly/patternfly-react#12637 ·
維護者通常 1 天內回覆
-
PF Team
難度 2/5 1-3 小時 新手友好度 72/100
patternfly/patternfly-react#12617 · 1 則留言 ·
維護者通常 1 天內回覆
-
PF Team
難度 2/5 1-3 小時 新手友好度 68/100
patternfly/patternfly-react#12610 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
patternfly/patternfly-react#12600 ·
維護者通常 1 天內回覆
查看 patternfly/patternfly-react 的全部 Issue
相似的 Issue
-
docs
難度 1/5 1 小時以內 新手友好度 68/100
remix-run/react-router#15558 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
solana-foundation/pay-kit#341 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 88/100
supabase/agent-skills#607 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 88/100
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆