Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/eleven-taxis-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@heroui/theme": patch
---

fix Safari autofill styling for dark mode readability in NumberInput & Input components (#4657)
2 changes: 2 additions & 0 deletions packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const input = tv({
"data-[type=color]:rounded-none",
"file:cursor-pointer file:bg-transparent file:border-0",
"autofill:bg-transparent bg-clip-text",
// Safari autofill styling fix - ensures text color is visible in dark mode
"dark:autofill:[-webkit-text-fill-color:hsl(var(--heroui-foreground))]",
],
clearButton: [
"p-2",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/theme/src/components/number-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ const numberInput = tv({
"data-[has-start-content=true]:ps-1.5",
"data-[has-end-content=true]:pe-1.5",
"autofill:bg-transparent bg-clip-text",
// Safari autofill styling fix - ensures text color is visible in dark mode
"dark:autofill:[-webkit-text-fill-color:hsl(var(--heroui-foreground))]",
],
clearButton: [
"p-2",
Expand Down
Loading