Skip to content

Commit

Permalink
fix: labels font weight (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav authored Nov 20, 2024
1 parent 9465895 commit 9f55ff5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/unfold/templates/unfold/helpers/field_readonly.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="flex group mb-6 flex-col last:mb-4">
<label class="block font-medium mb-2 text-gray-900 text-sm dark:text-gray-200">
<label class="block font-semibold mb-2 text-gray-900 text-sm dark:text-gray-200">
{{ title }}
</label>

Expand Down
2 changes: 1 addition & 1 deletion src/unfold/templates/unfold/helpers/form_label.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<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 %}">
<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 %}">
{{ field.label }}

{% if field.field.required %}
Expand Down
4 changes: 2 additions & 2 deletions src/unfold/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@

LABEL_CLASSES = [
"block",
"font-medium",
"font-semibold",
"mb-2",
"text-font-important-light",
"text-sm",
"dark:text-font-important-dark",
]

CHECKBOX_LABEL_CLASSES = [
"font-medium",
"font-semibold",
"ml-2",
"text-sm",
"text-font-important-light",
Expand Down

0 comments on commit 9f55ff5

Please sign in to comment.