Skip to content

Commit 9f55ff5

Browse files
authored
fix: labels font weight (#871)
1 parent 9465895 commit 9f55ff5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/unfold/templates/unfold/helpers/field_readonly.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="flex group mb-6 flex-col last:mb-4">
2-
<label class="block font-medium mb-2 text-gray-900 text-sm dark:text-gray-200">
2+
<label class="block font-semibold mb-2 text-gray-900 text-sm dark:text-gray-200">
33
{{ title }}
44
</label>
55

src/unfold/templates/unfold/helpers/form_label.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<label for="{{ field.id_for_label }}" class="block text-font-important-light dark:text-font-important-dark{% if field.field.widget.input_type == "checkbox" %}{% else %} font-medium mb-2{% endif %}">
1+
<label for="{{ field.id_for_label }}" class="block text-font-important-light dark:text-font-important-dark{% if field.field.widget.input_type == "checkbox" %}{% else %} font-semibold mb-2{% endif %}">
22
{{ field.label }}
33

44
{% if field.field.required %}

src/unfold/widgets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535

3636
LABEL_CLASSES = [
3737
"block",
38-
"font-medium",
38+
"font-semibold",
3939
"mb-2",
4040
"text-font-important-light",
4141
"text-sm",
4242
"dark:text-font-important-dark",
4343
]
4444

4545
CHECKBOX_LABEL_CLASSES = [
46-
"font-medium",
46+
"font-semibold",
4747
"ml-2",
4848
"text-sm",
4949
"text-font-important-light",

0 commit comments

Comments
 (0)