mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-10 09:03:02 +08:00
Make checkboxes focusable with keyboard
This commit is contained in:
parent
edefa6649a
commit
1a3c5b75c5
1 changed files with 2 additions and 2 deletions
|
@ -295,11 +295,11 @@ defmodule LivebookWeb.FormComponents do
|
|||
|
||||
~H"""
|
||||
<div>
|
||||
<label class="flex items-center gap-2 cursor-pointer">
|
||||
<label class="flex items-center gap-2 cursor-pointer relative">
|
||||
<input :if={@unchecked_value} type="hidden" value={@unchecked_value} name={@name} />
|
||||
<input
|
||||
type="checkbox"
|
||||
class="peer hidden"
|
||||
class="peer opacity-0 absolute top-0 left-0"
|
||||
value={@checked_value}
|
||||
name={@name}
|
||||
id={@id || @name}
|
||||
|
|
Loading…
Reference in a new issue