mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
Add full dark mode support to FieldLabel component (#173)
This commit is contained in:
@@ -26,7 +26,7 @@ export default function FieldLabel({
|
||||
>
|
||||
{label}
|
||||
{description && (
|
||||
<span className="my-0.5 text-[13px] font-normal text-slate-600">
|
||||
<span className="my-0.5 text-[13px] font-normal text-slate-600 dark:text-slate-400">
|
||||
{description}
|
||||
</span>
|
||||
)}
|
||||
@@ -34,12 +34,12 @@ export default function FieldLabel({
|
||||
);
|
||||
} else if (as === "span") {
|
||||
return (
|
||||
<div className="flex flex-col select-none">
|
||||
<span className="font-display text-[13px] font-medium leading-snug text-black">
|
||||
<div className="flex select-none flex-col">
|
||||
<span className="font-display text-[13px] font-medium leading-snug text-black dark:text-white">
|
||||
{label}
|
||||
</span>
|
||||
{description && (
|
||||
<span className="my-0.5 text-[13px] font-normal text-slate-600">
|
||||
<span className="my-0.5 text-[13px] font-normal text-slate-600 dark:text-slate-400">
|
||||
{description}
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user