mirror of https://github.com/jetkvm/kvm.git
Add full dark mode support to FieldLabel component (#173)
This commit is contained in:
parent
9ffdf0c4a6
commit
5e91cfc7fa
|
@ -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>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue