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:
@@ -48,7 +48,7 @@ export function PublishControl({ object }: { object: AdminObjectView }) {
|
||||
|
||||
return (
|
||||
<section className="border-t p-4">
|
||||
<div className="mb-2 text-xs font-medium uppercase text-neutral-500">
|
||||
<div className="mb-2 label-caption">
|
||||
{t("publish.heading")}
|
||||
</div>
|
||||
|
||||
@@ -59,10 +59,10 @@ export function PublishControl({ object }: { object: AdminObjectView }) {
|
||||
aria-current={i === currentIndex ? "step" : undefined}
|
||||
className={`flex-1 border px-2 py-1 text-center text-xs ${
|
||||
i === currentIndex
|
||||
? "bg-neutral-800 font-semibold text-white"
|
||||
? "bg-primary font-semibold text-primary-foreground"
|
||||
: i < currentIndex
|
||||
? "bg-neutral-100 text-neutral-600"
|
||||
: "text-neutral-400"
|
||||
? "bg-muted text-muted-foreground"
|
||||
: "text-muted-foreground"
|
||||
}`}
|
||||
>
|
||||
{t(`visibility.${step}`)}
|
||||
@@ -117,7 +117,7 @@ export function PublishControl({ object }: { object: AdminObjectView }) {
|
||||
</div>
|
||||
|
||||
{errorKind === "gate" && (
|
||||
<p role="alert" className="mt-2 text-sm text-red-600">
|
||||
<p role="alert" className="mt-2 text-sm text-destructive">
|
||||
{t("publish.gateError")}{" "}
|
||||
<Link to={`/objects/${object.id}/edit`} className="underline">
|
||||
{t("publish.editLink")}
|
||||
@@ -125,12 +125,12 @@ export function PublishControl({ object }: { object: AdminObjectView }) {
|
||||
</p>
|
||||
)}
|
||||
{errorKind === "illegal" && (
|
||||
<p role="alert" className="mt-2 text-sm text-red-600">
|
||||
<p role="alert" className="mt-2 text-sm text-destructive">
|
||||
{t("publish.illegalError")}
|
||||
</p>
|
||||
)}
|
||||
{errorKind === "other" && (
|
||||
<p role="alert" className="mt-2 text-sm text-red-600">
|
||||
<p role="alert" className="mt-2 text-sm text-destructive">
|
||||
{t("form.rejected")}
|
||||
</p>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user