]> BookStack Code Mirror - bookstack/commitdiff
better accessibility for honepot formfield
authornesges <redacted>
Sun, 21 Apr 2024 14:08:28 +0000 (16:08 +0200)
committernesges <redacted>
Sun, 21 Apr 2024 14:08:28 +0000 (16:08 +0200)
resources/sass/_forms.scss
resources/views/auth/register.blade.php

index fc0eb49bd45dc1ed8e015c7b3f042d1fa268e2e0..e7ee8c285b01dc54c1b1b3bcd665638315c72071 100644 (file)
@@ -390,14 +390,17 @@ input[type=color] {
 }
 
 .form-group.ambrosia-container, .form-group.ambrosia-container * {
-    position:absolute;
-    height:0px !important;
-    width:0px !important;
-    margin:0 !important;
+    position:absolute !important;
+    height:1px !important;
+    width:1px !important;
+    margin:-1px !important;
     padding:0 !important;
     background:transparent !important;
     color:transparent !important;
     border:none !important;
+    overflow: hidden !important;
+    clip: rect(0,0,0,0) !important;
+       white-space: nowrap !important;
 }
 
 .title-input input[type="text"] {
index c271bb34bec87a37170cf1a158cc973d770ba4e1..f9f4e8cb3d568f4b8592fd56077043ede17f339c 100644 (file)
@@ -13,7 +13,7 @@
             <form action="{{ url("/register") }}" method="POST" class="mt-l stretch-inputs">
                 {!! csrf_field() !!}
 
-                <div class="form-group ambrosia-container">
+                <div class="form-group ambrosia-container" aria-hidden="true">
                     <label for="name">{{ trans('auth.name') }}</label>
                     @include('form.text', ['name' => 'username'])
                 </div>