mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(input): revise styles in color type (#5098)
* chore(input): include data-type * fix(input): input with type=color style
This commit is contained in:
parent
1a7f3da5fd
commit
de2e47c11a
6
.changeset/light-hairs-complain.md
Normal file
6
.changeset/light-hairs-complain.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@heroui/input": patch
|
||||||
|
"@heroui/theme": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix input with type=color style (#5083)
|
||||||
@ -36,7 +36,7 @@
|
|||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": ">=18 || >=19.0.0-rc.0",
|
"react": ">=18 || >=19.0.0-rc.0",
|
||||||
"react-dom": ">=18 || >=19.0.0-rc.0",
|
"react-dom": ">=18 || >=19.0.0-rc.0",
|
||||||
"@heroui/theme": ">=2.4.9",
|
"@heroui/theme": ">=2.4.12",
|
||||||
"@heroui/system": ">=2.4.10"
|
"@heroui/system": ">=2.4.10"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@ -375,6 +375,7 @@ export function useInput<T extends HTMLInputElement | HTMLTextAreaElement = HTML
|
|||||||
"data-filled-within": dataAttr(isFilledWithin),
|
"data-filled-within": dataAttr(isFilledWithin),
|
||||||
"data-has-start-content": dataAttr(hasStartContent),
|
"data-has-start-content": dataAttr(hasStartContent),
|
||||||
"data-has-end-content": dataAttr(!!endContent),
|
"data-has-end-content": dataAttr(!!endContent),
|
||||||
|
"data-type": type,
|
||||||
className: slots.input({
|
className: slots.input({
|
||||||
class: clsx(
|
class: clsx(
|
||||||
classNames?.input,
|
classNames?.input,
|
||||||
|
|||||||
@ -45,6 +45,7 @@ const input = tv({
|
|||||||
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
"w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none",
|
||||||
"data-[has-start-content=true]:ps-1.5",
|
"data-[has-start-content=true]:ps-1.5",
|
||||||
"data-[has-end-content=true]:pe-1.5",
|
"data-[has-end-content=true]:pe-1.5",
|
||||||
|
"data-[type=color]:rounded-none",
|
||||||
"file:cursor-pointer file:bg-transparent file:border-0",
|
"file:cursor-pointer file:bg-transparent file:border-0",
|
||||||
"autofill:bg-transparent bg-clip-text",
|
"autofill:bg-transparent bg-clip-text",
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user