Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use padding instead of margin on checkbox label #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions elements/checkbox-examples/example-01.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<div class="flex items-start mb-6">
<div class="flex items-center h-5">
<input name="remember" id="remember" type="checkbox" class="w-4 h-4 rounded border-neutral-300 bg-neutral-50 focus:ring-3 focus:ring-blue-300" required>
<input name="remember" id="remember" type="checkbox"
class="w-4 h-4 rounded border-neutral-300 bg-neutral-50 focus:ring-3 focus:ring-blue-300" required>
</div>
<div class="ml-3 text-sm">
<div class="pl-3 text-sm">
<label for="remember" class="text-neutral-900">Remember Me</label>
</div>
</div>
5 changes: 3 additions & 2 deletions elements/checkbox.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<div class="flex items-center mb-4">
<input id="checkbox-id" type="checkbox" class="w-4 h-4 bg-gray-100 border-gray-300 rounded text-neutral-900 focus:ring-neutral-900">
<label for="checkbox-id" class="ml-2 text-sm font-medium text-gray-900">Checkbox</label>
<input id="checkbox-id" type="checkbox"
class="w-4 h-4 bg-gray-100 border-gray-300 rounded text-neutral-900 focus:ring-neutral-900">
<label for="checkbox-id" class="pl-2 text-sm font-medium text-gray-900">Checkbox</label>
</div>