Skip to content

Commit 668bba1

Browse files
authored
fix: readonly URL field dark mode (#520)
1 parent 533e35a commit 668bba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unfold/fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_admin_url(self, remote_field, remote_obj):
9595
current_app=self.model_admin.admin_site.name,
9696
)
9797
return format_html(
98-
'<a href="{}" class="text-primary-600 underline whitespace-nowrap">{}</a>',
98+
'<a href="{}" class="text-primary-600 underline whitespace-nowrap dark:text-primary-500">{}</a>',
9999
url,
100100
remote_obj,
101101
)
@@ -148,7 +148,7 @@ def _get_contents(self) -> str:
148148
return conditional_escape(result_repr)
149149
elif isinstance(f, models.URLField):
150150
return format_html(
151-
'<a href="{}" class="text-primary-600 underline whitespace-nowrap">{}</a>',
151+
'<a href="{}" class="text-primary-600 underline whitespace-nowrap dark:text-primary-500">{}</a>',
152152
value,
153153
value,
154154
)

0 commit comments

Comments
 (0)