[Bug]: Missing keyboard focus highlights and Escape key handling in Menu dropdown
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
- Ambito
- accessibility, frontend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- JavaScript
- Stelle
- 171
- Fork
- 421
- Merge medio
- 3g 6h
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di RocketChat/EmbeddedChat
-
Bug: username fallback in updateUserUsername never runs since the ddp-client migrationForse già presa @MuhammadFaizan-prog l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
RocketChat/EmbeddedChat#1489 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Low contrast on color swatch borders in Theme Lab (Layout Editor)Forse già presa @yashsarvaiya45 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
RocketChat/EmbeddedChat#1486 ·
I maintainer di solito rispondono entro 1 giorno
-
bug(api): _doConnect swallows connection/auth errors and marks failed sessions as authenticatedForse già presa @ashwanisingh011 l’ha presa 1 giorno fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
RocketChat/EmbeddedChat#1484 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: White screen crash (`Cannot read properties of undefined (reading 'members')`) when rendering UserMention outside MarkupInteractionContextForse già presa @swarnendusahu10-dotcom l’ha presa 2 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
RocketChat/EmbeddedChat#1482 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: UIKit PreviewBlock cover image tiles repeatedly and stretches across viewport when zoomed outForse già presa @swarnendusahu10-dotcom l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
RocketChat/EmbeddedChat#1480 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di RocketChat/EmbeddedChat
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
[Docs] CONTRIBUTING.md links to retired GitHub Learning Lab and Try Git sitesForse già presa @adityamukesh l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
reillywalter/win-dev-doctor#92 ·
I maintainer di solito rispondono entro 1 giorno
-
[Feature] 新增「查看完整听歌设备记录」接口Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100