[Bug]: Missing keyboard focus highlights and Escape key handling in Menu dropdown
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
The fix is scoped to @embeddedchat/ui-elements: Menu.styles.js holds the item/itemMobile style objects (hover only today) and Menu.js holds the dropdown open/close logic. Reproduce with cd packages/react && npx storybook dev -p 6006, opening the kebab menu in the chat header, then Tab and Escape. Done means focus-visible background matches hover and Escape closes the menu and returns focus to the trigger. Note an open pull request (#1452) already targets this, so check it before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description:
The Menu dropdown component in @embeddedchat/ui-elements lacks visual keyboard focus indicators and keyboard dismissal:
- No
:focus/:focus-visiblestyles onMenuItem:
MenuItem.styles.jsonly provides styles for mouse hover (&:hover). When navigating through menu options usingTab, the DOM element receives focus (viatabIndex="0"), but lacks any visual background highlight. - Missing
Escapekey listener on Desktop:
PressingEscapewhen the desktop menu is open does not dismiss the menu or return focus to the trigger button.
Steps to reproduce:
- Start Storybook:
cd packages/react && npx storybook dev -p 6006 - Click the three-dot kebab menu in the chat header.
- Press
Tabrepeatedly — observe that options do not visibly highlight or indicate focus. - Press
Escape— observe the menu remains open.
Expected behavior:
- Tabbing through menu items should visibly highlight each option identically to the
:hoverstate. - Pressing
Escapeshould close the dropdown and return focus to the three-dot button.
Proposed Solution:
I would like to resolve this in @embeddedchat/ui-elements:
- Add
&:focus, &:focus-visibletoitemanditemMobileinMenu.styles.js. - Add an
Escapekey listener toMenu.jsto dismiss the dropdown and restore trigger focus.
May I be assigned this issue?
- Ngôn ngữ chính
- JavaScript
- Star
- 171
- Fork
- 421
- Merge trung bình
- 3 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationCó thể đã có người làm @MuhammadFaizan-prog đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RocketChat/EmbeddedChat#1489 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Có thể đã có người làm @yashsarvaiya45 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
RocketChat/EmbeddedChat#1486 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedCó thể đã có người làm @ashwanisingh011 đã nhận 1 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
RocketChat/EmbeddedChat#1484 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextCó thể đã có người làm @swarnendusahu10-dotcom đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
RocketChat/EmbeddedChat#1482 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outCó thể đã có người làm @swarnendusahu10-dotcom đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
RocketChat/EmbeddedChat#1480 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của RocketChat/EmbeddedChat
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Life-Framework/Life-Framework#7017 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e/DevOps enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Accenture/sfmc-devtools#2795 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent/guide documentation help wanted stage/010-actionable
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kubestellar/console-kb#4003 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FilOzone/synapse-sdk#1201 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày