Skip to content

Commit 16399b6

Browse files
committed
better accessibility for honepot formfield
1 parent 31272e6 commit 16399b6

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

resources/sass/_forms.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,17 @@ input[type=color] {
390390
}
391391

392392
.form-group.ambrosia-container, .form-group.ambrosia-container * {
393-
position:absolute;
394-
height:0px !important;
395-
width:0px !important;
396-
margin:0 !important;
393+
position:absolute !important;
394+
height:1px !important;
395+
width:1px !important;
396+
margin:-1px !important;
397397
padding:0 !important;
398398
background:transparent !important;
399399
color:transparent !important;
400400
border:none !important;
401+
overflow: hidden !important;
402+
clip: rect(0,0,0,0) !important;
403+
white-space: nowrap !important;
401404
}
402405

403406
.title-input input[type="text"] {

resources/views/auth/register.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<form action="{{ url("/register") }}" method="POST" class="mt-l stretch-inputs">
1414
{!! csrf_field() !!}
1515

16-
<div class="form-group ambrosia-container">
16+
<div class="form-group ambrosia-container" aria-hidden="true">
1717
<label for="name">{{ trans('auth.name') }}</label>
1818
@include('form.text', ['name' => 'username'])
1919
</div>

0 commit comments

Comments
 (0)