Skip to content

Fix input autofill colors#10975

Open
Manoj-M-S wants to merge 1 commit into
shadcn-ui:mainfrom
Manoj-M-S:codex/fix-input-autofill-colors
Open

Fix input autofill colors#10975
Manoj-M-S wants to merge 1 commit into
shadcn-ui:mainfrom
Manoj-M-S:codex/fix-input-autofill-colors

Conversation

@Manoj-M-S

Copy link
Copy Markdown

Summary

Fixes #10964.

Updates the v4 input styles so browser-autofilled fields keep the shadcn theme background and foreground colors instead of showing the browser’s default autofill styling.

What changed

  • Added autofill background and text color styles to the New York v4 Input component.
  • Applied the same autofill treatment to the v4 registry style presets so themed inputs behave consistently.

Validation

  • Verified the generated class changes target autofilled input state with:
    • autofill:shadow-[inset_0_0_0px_1000px_var(--color-background)]
    • autofill:[-webkit-text-fill-color:var(--color-foreground)]
  • Confirmed the fix is applied consistently across the affected v4 input styles.

@vercel

vercel Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

@Manoj-M-S is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

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.

[bug]: autofill browser input overlays shadcn input covering border and border radius

1 participant