Voter dialogs focus their title, no focus ring on Annuler

This commit is contained in:
2026-11-16 17:28:50 +01:00
parent d07667efee
commit 766426b328
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -5,3 +5,4 @@ __pycache__/
*.pem *.pem
.pytest_cache/ .pytest_cache/
.claude/ .claude/
docs/video/
+2
View File
@@ -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); } .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); } 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::backdrop { background: rgba(28, 32, 54, .45); backdrop-filter: blur(2px); }
dialog[open] { animation: rise .2s ease-out; } dialog[open] { animation: rise .2s ease-out; }
#confirm-choices { list-style: none; padding: 0; margin: 0 0 8px; } #confirm-choices { list-style: none; padding: 0; margin: 0 0 8px; }
+2 -2
View File
@@ -72,7 +72,7 @@
<dialog id="confirm"> <dialog id="confirm">
<form method="dialog"> <form method="dialog">
<h2>Confirmer</h2> <h2 tabindex="-1" autofocus>Confirmer</h2>
<p id="confirm-q" class="muted"></p> <p id="confirm-q" class="muted"></p>
<ul id="confirm-choices"></ul> <ul id="confirm-choices"></ul>
<p class="hint">Définitif.</p> <p class="hint">Définitif.</p>
@@ -84,7 +84,7 @@
</dialog> </dialog>
<dialog id="presence"> <dialog id="presence">
<h2>Visez l'écran</h2> <h2 tabindex="-1" autofocus>Visez l'écran</h2>
<div id="p-ring" class="dots"></div> <div id="p-ring" class="dots"></div>
<div class="cam"><video id="p-video" playsinline muted></video></div> <div class="cam"><video id="p-video" playsinline muted></video></div>
<p id="p-msg" class="scan-msg bad"></p> <p id="p-msg" class="scan-msg bad"></p>