fix: enforce semantic contrast across admin
Local Build and Deploy / deploy (push) Successful in 44s

This commit is contained in:
Simo committed 2026-07-12 15:14:15 +02:00
1 parent 45c8178cfa
commit f0b4bc1630
86 files changed
+438 -338

No files matched your search

+4 -4
View File
@@ -65,13 +65,13 @@ export default async function AdminMaintenance() {
<h2 className="admin-section-title">{t("currentState")}</h2>
<div className="admin-card flex items-center gap-3">
<span
className={`inline-block text-[0.72rem] font-bold px-2 py-0.5 rounded-full ${enabled ? "bg-red-500/22 text-[var(--color-text)]" : "bg-green-600/20 text-[var(--color-text)]"}`}
className={`inline-block text-[0.72rem] font-bold px-2 py-0.5 rounded-full ${enabled ? "bg-[var(--color-error-subtle)] text-[var(--color-text)]" : "bg-[var(--color-success-subtle)] text-[var(--color-text)]"}`}
>
{enabled ? t("enabled") : t("disabled")}
</span>
<div>
<strong>{t("maintenanceCurrently", { status: enabled ? t("enabled") : t("disabled") })}</strong>
<p className="text-xs text-gray-500 dark:text-gray-400 mt-1 m-0">
<p className="text-xs theme-text-muted dark:theme-text-muted mt-1 m-0">
{enabled ? t("onlyRankCanLogin", { rank: minRankValue }) : t("hotelOpenToEveryone")}
</p>
</div>
@@ -94,7 +94,7 @@ export default async function AdminMaintenance() {
</label>
<div className="mb-4 max-w-[220px]">
<label htmlFor="mt-min-rank" className="text-sm text-gray-500 dark:text-gray-400 block mb-1">
<label htmlFor="mt-min-rank" className="text-sm theme-text-muted dark:theme-text-muted block mb-1">
{t("minLoginRankLabel")}
</label>
<input
@@ -109,7 +109,7 @@ export default async function AdminMaintenance() {
</div>
<div className="mb-4">
<label htmlFor="mt-message" className="text-sm text-gray-500 dark:text-gray-400 block mb-1">
<label htmlFor="mt-message" className="text-sm theme-text-muted dark:theme-text-muted block mb-1">
{t("maintenanceMessageLabel")}
</label>
<textarea