Skip to content

Commit 4b1c90b

Browse files
committed
feat(ui): replace native checkbox styles with custom design
1 parent 2e5edc8 commit 4b1c90b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/server/templates/components/git_form.jinja

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,18 @@
119119
<div class="flex flex-col items-start w-full sm:col-span-2 lg:col-span-1 lg:row-span-2 lg:pt-3.5">
120120
<!-- PAT checkbox -->
121121
<div class="flex items-center space-x-2">
122-
<input type="checkbox"
123-
id="showAccessSettings"
124-
class="w-4 h-4 rounded border-gray-900"
125-
onchange="toggleAccessSettings()"
126-
{% if token %}checked{% endif %}>
127-
<label for="showAccessSettings" class="text-gray-900">Private Repository</label>
122+
<label for="showAccessSettings" class="flex gap-2 text-gray-900">
123+
<div class="relative w-6 h-6">
124+
<input type="checkbox"
125+
id="showAccessSettings"
126+
onchange="toggleAccessSettings()"
127+
{% if token %}checked{% endif %}
128+
class="peer appearance-none w-full h-full rounded-sm border-[3px] border-current bg-white m-0 text-current shadow-[3px_3px_0_currentColor]" />
129+
<span class="absolute inset-0 w-3 h-3 m-auto scale-0 transition-transform duration-150 ease-in-out shadow-[inset_1rem_1rem_#FE4A60] bg-[CanvasText] origin-bottom-left peer-checked:scale-100"
130+
style="clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%)"></span>
131+
</div>
132+
Private Repository
133+
</label>
128134
{% include "components/badge_new.jinja" %}
129135
</div>
130136
<!-- PAT field -->

0 commit comments

Comments
 (0)