From 07137d8b1565f12d45c0552d03e26c9da6b06ef9 Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Sun, 16 Aug 2026 17:28:50 +0100 Subject: [PATCH] Voter dialogs focus their title, no focus ring on Annuler --- .gitignore | 1 + static/css/vote.css | 2 ++ static/vote.html | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 48cfaab..d071572 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ __pycache__/ *.pem .pytest_cache/ .claude/ +docs/video/ diff --git a/static/css/vote.css b/static/css/vote.css index c6216cc..bac85a3 100644 --- a/static/css/vote.css +++ b/static/css/vote.css @@ -43,6 +43,8 @@ button.link { display: block; margin: 12px auto 0; border: none; background: non .waiting { text-align: center; padding: 36px 0; color: var(--ink-3); } dialog { border: none; border-radius: 24px; padding: 24px; width: min(92vw, 400px); background: var(--surface); color: var(--ink); } +/* dialogs focus their title on open, no ring on a button nobody chose */ +dialog h2:focus { outline: none; } dialog::backdrop { background: rgba(28, 32, 54, .45); backdrop-filter: blur(2px); } dialog[open] { animation: rise .2s ease-out; } #confirm-choices { list-style: none; padding: 0; margin: 0 0 8px; } diff --git a/static/vote.html b/static/vote.html index 604d7fa..2826a14 100644 --- a/static/vote.html +++ b/static/vote.html @@ -72,7 +72,7 @@
-

Confirmer

+

Confirmer

    Définitif.

    @@ -84,7 +84,7 @@
    -

    Visez l'écran

    +

    Visez l'écran