From e988a5d8b0d7c68451c61c0e12f3ed5862034e01 Mon Sep 17 00:00:00 2001 From: simoleo89 Date: Sat, 6 Jun 2026 13:56:26 +0200 Subject: [PATCH] fix(furni-editor): make permission toggles clearly show on/off state Enabled chips now use a solid teal fill (bg-[#1E7295]) with white text + a white status dot; disabled chips are muted grey with a grey dot. The old bg-primary/10 + text-primary 'on' state was nearly indistinguishable from 'off'. Adds aria-pressed + title for a11y. --- src/components/furni-editor/views/FurniEditorEditView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/furni-editor/views/FurniEditorEditView.tsx b/src/components/furni-editor/views/FurniEditorEditView.tsx index 3927fd5..251509b 100644 --- a/src/components/furni-editor/views/FurniEditorEditView.tsx +++ b/src/components/furni-editor/views/FurniEditorEditView.tsx @@ -341,8 +341,11 @@ export const FurniEditorEditView: FC = props => key={ key } type="button" onClick={ () => setField(key, !on) } - className={ `text-[11px] px-2.5 py-1 rounded-lg border transition ${ on ? 'bg-primary/10 border-primary/40 text-primary font-medium' : 'bg-[#ffffff] border-slate-200 text-slate-400 hover:border-slate-300' }` } + aria-pressed={ on } + title={ on ? 'Enabled — click to disable' : 'Disabled — click to enable' } + className={ `inline-flex items-center gap-1.5 text-[11px] px-2.5 py-1 rounded-lg border font-medium transition ${ on ? 'bg-[#1E7295] border-[#1E7295] text-[#ffffff] shadow-sm' : 'bg-slate-100 border-slate-200 text-slate-400 hover:bg-slate-200 hover:text-slate-600' }` } > + { key.replace('allow', '') } );