Skip to content

Commit

Permalink
fix(theme): revise isInvalid input styles
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed May 16, 2024
1 parent 8988981 commit a0a4848
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,24 +535,24 @@ const input = tv({
variant: "flat",
class: {
inputWrapper: [
"bg-danger-50",
"data-[hover=true]:bg-danger-100",
"group-data-[focus=true]:bg-danger-50",
"!bg-danger-50",
"data-[hover=true]:!bg-danger-100",
"group-data-[focus=true]:!bg-danger-50",
],
},
},
{
isInvalid: true,
variant: "bordered",
class: {
inputWrapper: "!border-danger group-data-[focus=true]:border-danger",
inputWrapper: "!border-danger group-data-[focus=true]:!border-danger",
},
},
{
isInvalid: true,
variant: "underlined",
class: {
inputWrapper: "after:bg-danger",
inputWrapper: "after:!bg-danger",
},
},
// size & labelPlacement
Expand Down

0 comments on commit a0a4848

Please sign in to comment.