Voter dialogs focus their title, no focus ring on Annuler
This commit is contained in:
@@ -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; }
|
||||
|
||||
+2
-2
@@ -72,7 +72,7 @@
|
||||
|
||||
<dialog id="confirm">
|
||||
<form method="dialog">
|
||||
<h2>Confirmer</h2>
|
||||
<h2 tabindex="-1" autofocus>Confirmer</h2>
|
||||
<p id="confirm-q" class="muted"></p>
|
||||
<ul id="confirm-choices"></ul>
|
||||
<p class="hint">Définitif.</p>
|
||||
@@ -84,7 +84,7 @@
|
||||
</dialog>
|
||||
|
||||
<dialog id="presence">
|
||||
<h2>Visez l'écran</h2>
|
||||
<h2 tabindex="-1" autofocus>Visez l'écran</h2>
|
||||
<div id="p-ring" class="dots"></div>
|
||||
<div class="cam"><video id="p-video" playsinline muted></video></div>
|
||||
<p id="p-msg" class="scan-msg bad"></p>
|
||||
|
||||
Reference in New Issue
Block a user