Skip to content

Commit

Permalink
fix(input): fixed the background change on autofill in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
awesome-pro committed Jul 8, 2024
1 parent e71b019 commit 8e0a101
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-days-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

fixed the input background change by autofill in Chrome
5 changes: 0 additions & 5 deletions .changeset/sour-lobsters-sort.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/components/input/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Input from "./input";
import Textarea from "./textarea";
import "./input.css";

// export types
export type {InputProps} from "./input";
Expand Down
13 changes: 0 additions & 13 deletions packages/components/input/src/input.css

This file was deleted.

1 change: 1 addition & 0 deletions packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const input = tv({
"data-[has-start-content=true]:ps-1.5",
"data-[has-end-content=true]:pe-1.5",
"file:cursor-pointer file:bg-transparent file:border-0",
"autofill:bg-transparent bg-clip-text",
],
clearButton: [
"p-2",
Expand Down

0 comments on commit 8e0a101

Please sign in to comment.