Improve accessibility

This commit is contained in:
Yarmo Mackenbach 2021-06-08 10:15:45 +02:00
parent 2f8a547183
commit 205162cd35
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 21 additions and 10 deletions

View file

@ -36,14 +36,17 @@ block content
#search.form-wrapper.card #search.form-wrapper.card
h2 Generate a profile h2 Generate a profile
form(action="post") form(action="post")
input(type="search" name="query" required placeholder="3637202523e7c1309ab79e99ef2dc5827b445f4b, test@doip.rocks") label(for="query") Query for fingerprint or email identifier
div.radio-wrapper input#query(type="search" name="query" required placeholder="3637202523e7c1309ab79e99ef2dc5827b445f4b, test@doip.rocks")
fieldset(aria-role="radiogroup").radio-wrapper
legend Protocol
input#protocol-hkp(type="radio" name="protocol" value="hkp" checked="true") input#protocol-hkp(type="radio" name="protocol" value="hkp" checked="true")
label(for="protocol-hkp") HKP label(for="protocol-hkp" tabindex="0") HKP
input#protocol-wkd(type="radio" name="protocol" value="wkd") input#protocol-wkd(type="radio" name="protocol" value="wkd")
label(for="protocol-wkd") WKD label(for="protocol-wkd" tabindex="0") WKD
input#protocol-sig(type="radio" name="protocol" value="sig") input#protocol-sig(type="radio" name="protocol" value="sig")
label(for="protocol-sig") Signature label(for="protocol-sig" tabindex="0") Signature
input(type="submit" value="Generate profile") input(type="submit" value="Generate profile")
if highlights.length > 0 if highlights.length > 0
@ -51,7 +54,7 @@ block content
.hcards.hcards--highlights .hcards.hcards--highlights
each hl in highlights each hl in highlights
.card.card--small-profile .card.card--small-profile
p.name= hl.name h3.name= hl.name
p p
span.fingerprint= hl.fingerprint span.fingerprint= hl.fingerprint
br br

View file

@ -59,18 +59,26 @@ block content
dialog#dialog--encryptMessage dialog#dialog--encryptMessage
div div
form(method='post') form(method='post')
textarea.input(name='message' placeholder='Message') label(for="encryptionInput") Message to encrypt
textarea#encryptionInput.input(name='message')
input.no-margin(type='submit' name='submit' value='ENCRYPT MESSAGE') input.no-margin(type='submit' name='submit' value='ENCRYPT MESSAGE')
textarea.output(name='message' placeholder='Waiting for input' readonly) br
br
label(for="encryptionOutput") Encryption result
textarea#encryptionOutput.output(name='message' placeholder='Waiting for input' readonly)
form(method="dialog") form(method="dialog")
input(type="submit" value="Close") input(type="submit" value="Close")
dialog#dialog--verifySignature dialog#dialog--verifySignature
div div
form(method='post') form(method='post')
textarea.input(name='signature' placeholder='Signature') label(for="sigVerInput") Signature
textarea#sigVerInput.input(name='signature')
input.no-margin(type='submit' name='submit' value='VERIFY SIGNATURE') input.no-margin(type='submit' name='submit' value='VERIFY SIGNATURE')
textarea.output(name='message' placeholder='Waiting for input' readonly) br
br
label(for="sigVerOutput") Verification result
textarea#sigVerOutput.output(name='message' placeholder='Waiting for input' readonly)
form(method="dialog") form(method="dialog")
input(type="submit" value="Close") input(type="submit" value="Close")