Skip to content

Commit 42264f4

Browse files
committed
CSS: Fixed floating search icon on mobile
Also updated styles to use logical elements instead of conditional rules for altered search boxes. Related to #2504
1 parent abda9bc commit 42264f4

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

resources/sass/_forms.scss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,8 @@ input[type=color] {
441441
padding: 0;
442442
cursor: pointer;
443443
position: absolute;
444-
left: 8px;
445-
top: 9px;
446-
@include rtl {
447-
right: 8px;
448-
left: auto;
449-
}
444+
inset-inline-start: 8px;
445+
top: 10px;
450446
}
451447
input {
452448
display: block;

resources/views/search/all.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@
7979

8080
<form action="{{ url('/search') }}" method="GET" class="search-box flexible hide-over-l">
8181
<input value="{{$searchTerm}}" type="text" name="term" placeholder="{{ trans('common.search') }}">
82-
<button type="submit">@icon('search')</button>
82+
<button type="submit"
83+
aria-label="{{ trans('common.search') }}"
84+
tabindex="-1">@icon('search')</button>
8385
</form>
8486

8587
<h6 class="text-muted">{{ trans_choice('entities.search_total_results_found', $totalResults, ['count' => $totalResults]) }}</h6>

0 commit comments

Comments
 (0)