Managing focus
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript
研究方向
先找出 issue 中參照的 modal 實作與示範,然後將它們的行為與連結的無障礙 modal 範例進行比較。當開啟、使用 Tab 鍵移動、按下 Esc、關閉以及還原焦點都如描述般運作,且存在無障礙的關閉控制項時,工作即完成。
由索引模型根據 Issue 內容生成。
描述
Looking at the demos it looks like there is some focus management missing on the modals. Here's what needs to be added to fix it:
-
When a modal is open, focus should be sent to the modal (either on the element itself via .focus() and tabindex="-1" or sent to the first interactive element.
-
When a modal is open, focus should be trapped inside the modal (so you can't access elements behind it when tabbing with the keyboard).
-
When a modal is open, pressing the escape key should close the modal.
-
It would be nice if the modals had an explicit close button with an accessible name (e.g.
<button aria-label="close">X</button>. -
When a modal is closed, focus should be send back to the element which opened it.
An example of an accessible modal:
http://edenspiekermann.github.io/a11y-dialog/example/
The WAI-ARIA authoring practices guide on modals:
https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/dialog.html
- 主要語言
- JavaScript
- 星號
- 599
- 分支
- 56
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
electerious/basicLightbox 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 45/100
electerious/basicLightbox#45 ·
-
難度 3/5 1-2 天 新手友好度 35/100
electerious/basicLightbox#37 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 38/100
electerious/basicLightbox#27 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
electerious/basicLightbox#10 · 4 則留言 ·
查看 electerious/basicLightbox 的全部 Issue
相似的 Issue
-
Mend: dependency security vulnerability
難度 2/5 1-3 小時 新手友好度 65/100
ManageIQ/manageiq-ui-service#2259 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 73/100
electerious/Ackee#411 ·
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 64/100
babalae/bettergi-scripts-list#3905 · 1 則留言 ·
維護者通常 1 天內回覆
-
[Bug] "Configure Colota" opens Colota with "Invalid configuration: No configuration data in URL"未關閉
難度 1/5 1-3 小時 新手友好度 87/100
dedicatedcode/reitti#1445 ·
維護者通常 1 天內回覆