Skip to content

Commit

Permalink
add tabindex='0' to make :focus-within work on Safari (#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabine authored Aug 23, 2023
1 parent 3e9dde2 commit 2ca1cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocamlorg_frontend/components/forms.eml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let search_input ?button_attrs ?input_attrs ?dropdown_html ~label ~name _class =
<%s! html %>
</div>
in
<div class="dropdown-container flex items-center justify-center h-10 rounded-md focus-within:outline-primary-300 focus-within:outline focus-within:outline-2 <%s _class %>">
<div class="dropdown-container flex items-center justify-center h-10 rounded-md focus-within:outline-primary-300 focus-within:outline focus-within:outline-2 <%s _class %>" tabindex="0">
<label for="<%s name %>" class="sr-only"><%s label %></label>
<input
type="search"
Expand Down

0 comments on commit 2ca1cf2

Please sign in to comment.