refactor(web): migrate feature screens to design tokens + radius token (#49)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -117,7 +117,7 @@ export function ObjectForm({
|
||||
/>
|
||||
|
||||
{errors.core?.[key] && (
|
||||
<p role="alert" className="text-xs text-red-600">
|
||||
<p role="alert" className="text-xs text-destructive">
|
||||
{t("form.required")}
|
||||
</p>
|
||||
)}
|
||||
@@ -127,7 +127,7 @@ export function ObjectForm({
|
||||
return (
|
||||
<form onSubmit={submit} className="space-y-4 overflow-auto p-4">
|
||||
{formError && (
|
||||
<p role="alert" className="text-sm text-red-600">
|
||||
<p role="alert" className="text-sm text-destructive">
|
||||
{formError}
|
||||
</p>
|
||||
)}
|
||||
@@ -147,7 +147,7 @@ export function ObjectForm({
|
||||
|
||||
<select
|
||||
id="visibility"
|
||||
className="w-full rounded border px-2 py-1 text-sm"
|
||||
className="w-full rounded-md border px-2 py-1 text-sm"
|
||||
{...register("visibility")}
|
||||
>
|
||||
<option value="draft">{t("form.draft")}</option>
|
||||
@@ -158,7 +158,7 @@ export function ObjectForm({
|
||||
|
||||
{definitions && definitions.length > 0 && (
|
||||
<fieldset className="space-y-3 border-t pt-3">
|
||||
<legend className="text-xs font-medium uppercase text-neutral-500">
|
||||
<legend className="label-caption">
|
||||
{t("form.flexibleHeading")}
|
||||
</legend>
|
||||
|
||||
@@ -167,7 +167,7 @@ export function ObjectForm({
|
||||
<FieldInput definition={def} form={form} />
|
||||
|
||||
{errors.fields?.[def.key] && (
|
||||
<p role="alert" className="text-xs text-red-600">
|
||||
<p role="alert" className="text-xs text-destructive">
|
||||
{errors.fields[def.key]?.message ?? t("form.required")}
|
||||
</p>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user