Hidden star banner and back to top buttons are in the keyboard tab order on every page
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 86/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- accessibility, frontend
Piste de recherche
Lisez les styles masqués et visibles dans src/components/StarBanner.astro et src/components/BackToTop.astro, puis comparez-les au menu mobile fermé dans src/components/Header.astro. Vérifiez l’ordre de tabulation au clavier avant et après que chaque contrôle devient visible ou est masqué, et confirmez que les fondus fonctionnent toujours. Le travail est terminé lorsque les contrôles masqués ne peuvent pas recevoir le focus, que les contrôles visibles de la bannière fonctionnent toujours et que les critères d’acceptation sont remplis.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
On any page of https://og.codercops.com, Tab past the last footer link ("CODERCOPS"). The next three stops are "Star on GitHub", "Maybe later" and "Close" in the star banner, which isn't on screen, so the focus seems to vanish. On a short page like /preview, the fourth stop is the Back to top button, which is also invisible until you've scrolled 500px. Only then does focus reach the Feedback button.
The banner stays in the tab order even after you've dismissed it for good. And while it's hidden it has aria-hidden="true", so screen reader users can land on controls inside a region that's supposed to be hidden.
Both hide with opacity: 0 and pointer-events: none, which doesn't take anything out of the tab order:
src/components/StarBanner.astro:aria-hidden="true"on line 2, the hidden style on lines 94 to 97, and the visible class on lines 100 to 104src/components/BackToTop.astro: the hidden style on lines 48 to 51, and the visible class on lines 54 to 58
The mobile menu already gets this right: it uses visibility: hidden while it's closed (src/components/Header.astro, lines 277 to 291).
What to do
- Make both unfocusable while they're hidden. The simplest way is CSS: add
visibility: hiddento the hidden state andvisibility: visibleto the visible class, and addvisibilityto thetransitionso the fade out still plays. Toggling theinertattribute together with the class works too. - Keep the banner's
aria-hiddenmatching what's on screen, as it does now. - The back to top script is also part of #161 (scripts that stop working after you follow a link inside the site), so a change that only touches CSS is the easiest to merge alongside it.
Where to look
src/components/StarBanner.astro: the markup (lines 2 to 20),hideBanner(lines 47 to 53), where it's shown (lines 57 to 62) and the styles (lines 83 to 104)src/components/BackToTop.astro:toggle(lines 14 to 20) and the styles (lines 32 to 58)src/components/Header.astro: the closed mobile menu (lines 277 to 291), for comparison
Acceptance criteria
- While the banner is hidden (before it appears, after "Maybe later", or after dismissing it for good), Tab goes from the last footer link to the next control you can see
- Back to top is in the tab order only while it's visible
- When the banner is showing, its three controls can be reached with Tab and still work
- The fade in and out look the same as before
-
npm run check,npm run testandnpm run buildpass - The PR says how you checked the tab order (with the keyboard, or the browser's accessibility tree)
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #169 in the description.
- Langage dominant
- TypeScript
- Étoiles
- 8
- Forks
- 4
- Merge moyen
- 5 h 44 min
- PR mergées (30 j)
- 83
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de codercops/ogcops
-
Add the Order Status e-commerce template (`ecommerce-order-status`)Peut-être pris @piyusshhjangid l’a pris il y a 1 jour. Ouvertegood first issue hacktoberfest templates
codercops/ogcops#181 · 4 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Add the Cheat Sheet tutorial template (`tutorial-cheat-sheet`)Peut-être pris @srikar-naidu l’a pris il y a 1 jour. Ouvertehacktoberfest help wanted templates
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
codercops/ogcops#180 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Add the Call for Speakers event template (`event-call-for-speakers`)Peut-être pris @Saifjafri212213 l’a pris il y a 1 jour. Ouvertegood first issue hacktoberfest templates
codercops/ogcops#177 · 2 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Add the Day Streak developer template (`developer-day-streak`)Peut-être pris @srikar-naidu l’a pris il y a 1 jour. Ouvertehacktoberfest help wanted templates
codercops/ogcops#176 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Hacktoberfest 2026: start hereOuvertehacktoberfest
Difficulté 1/5 Moins d'une heure Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de codercops/ogcops
Issues similaires
-
level/task type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
wazuh/wazuh-dashboard-plugins#9508 ·
Les mainteneurs répondent en général sous 1 jour
-
Testnet EOL page links Zonescan mainnetPeut-être pris @napelvs l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 76/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Azure-Samples/azure-search-openai-demo#3249 ·
Les mainteneurs répondent en général sous 1 jour
-
[Docs] docs/architecture.mermaid leaves out 21 of the 51 src/ directoriesPeut-être pris @uyg7x l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement status:needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
dongdongbh/Mindwtr#1438 ·
Les mainteneurs répondent en général sous 1 jour