SwatchManager chooser: readable text colour and a visible chip border on dark colours

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
shadowdaoandClaude Sonnet 5.5 committed 2026-11-01 10:12:58 -08:00
1 parent 75bd5921da
commit 7627be78dc
1 file changed
+2 -2
+2 -2
View File
@@ -286,9 +286,9 @@ export const SwatchManager: React.FC = () => {
{chooser.map((c) => (
<button
key={c.kind} type="button" onClick={() => addPicked(c.hex)}
style={{ display: 'flex', alignItems: 'center', gap: 6, width: '100%', textAlign: 'left', marginBottom: 3, ...smallBtn }}
style={{ display: 'flex', alignItems: 'center', gap: 6, width: '100%', textAlign: 'left', marginBottom: 3, ...smallBtn, fontSize: 11, color: 'var(--color-text)' }}
>
<span aria-hidden style={{ width: 14, height: 14, borderRadius: 3, border: '1px solid var(--color-border)', background: c.hex }} />
<span aria-hidden style={{ width: 16, height: 16, flex: '0 0 16px', borderRadius: 3, border: '1px solid rgba(255,255,255,0.55)', background: c.hex }} />
<span>{KIND_LABEL[c.kind]}</span>
<code>{c.hex}</code>
{c.match && <em style={{ opacity: 0.8 }}>matches {c.match.label}</em>}