WebAuthN: Replace sr-only with hidden css-class

This commit is contained in:
Martin Gross
2025-05-22 17:13:11 +02:00
parent 7756b6745c
commit 465171f323
4 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
<input class="form-control" name="token" placeholder="{% trans "Token" %}" autocomplete="one-time-code"
type="text" required="required" autofocus="autofocus" id="webauthn-response">
</div>
<div class="sr-only alert alert-danger" id="webauthn-error">
<div class="alert alert-danger hidden" id="webauthn-error">
{% trans "WebAuthn failed. Check that the correct authentication device is correctly plugged in." %}
</div>
{% if jsondata %}

View File

@@ -22,7 +22,7 @@
<button class="btn btn-primary sr-only" type="submit"></button>
</form>
<div class="sr-only alert alert-danger" id="webauthn-error">
<div class="alert alert-danger hidden" id="webauthn-error">
{% trans "Device registration failed." %}
</div>
<script type="text/json" id="webauthn-enroll">

View File

@@ -18,7 +18,7 @@
<input class="form-control" id="webauthn-response" name="webauthn"
type="hidden">
{% if jsondata %}
<div class="sr-only alert alert-danger" id="webauthn-error">
<div class="alert alert-danger hidden" id="webauthn-error">
{% trans "WebAuthn failed. Check that the correct authentication device is correctly plugged in." %}
</div>
<p><small>