Skip to content

[fix] input 欄位融進 card 看不見:修 --input 邊框對比 - #59

Merged
YJack0000 merged 1 commit into
mainfrom
claude/fix-input-invisible-in-card
Aug 28, 2026
Merged

[fix] input 欄位融進 card 看不見:修 --input 邊框對比#59
YJack0000 merged 1 commit into
mainfrom
claude/fix-input-invisible-in-card

Conversation

@YJack0000

Copy link
Copy Markdown
Contributor

問題:card 裡的 input 常常看不見——欄位融進卡片。

根因(客觀 bug):shadcn 的 Input 是 border border-input + bg-transparent(透明背景直接透出 card 色)。而 light 模式的 --input = oklch(0.9809),比 --cardoklch(0.9784)——邊框比卡片還淺=隱形,加上背景透明透出卡片色,整個欄位就消失了。(--input 甚至比一般分隔線 --border 0.9317 還亮,是 token 生成時的異常。)

修法(token 層級,不動 components/ui/,保持 shadcn 可更新):

  • light:--input 0.9809 → 0.8900(明顯比 card 深,欄位讀得出邊界)
  • dark:--input 0.3020 → 0.3400(跟 card 0.2097 拉開;shadcn 的 dark:bg-input/30 也以此上色,填色一併變明顯)

影響全站所有 Input / Select / Textarea 的邊框(它們都用 border-input),login / 各表單頁一致受惠。build 過。

@YJack0000
YJack0000 requested a review from yui0303 August 28, 2026 12:12
@github-actions

Copy link
Copy Markdown

✅ SonarQube Quality Gate passed — pathorsAI_internal

0 open issues on this PR.

@YJack0000
YJack0000 merged commit f4affa3 into main Aug 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant