Skip to content

Commit

Permalink
fix(input): input box shifts upwards atfer adding the errorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Apr 16, 2024
1 parent f64b0dc commit cccdd52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/good-birds-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/input": patch
---

Fixes input helperWrapper, description and errorMessage styles (#2730)
6 changes: 3 additions & 3 deletions packages/core/theme/src/components/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ const input = tv({
// focus ring
...dataFocusVisibleClasses,
],
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
description: "text-tiny text-foreground-400",
errorMessage: "text-tiny text-danger",
helperWrapper: "hidden group-data-[has-helper=true]:flex relative flex-col",
description: "text-tiny text-foreground-400 p-1",
errorMessage: "text-tiny text-danger p-1 absolute",
},
variants: {
variant: {
Expand Down

0 comments on commit cccdd52

Please sign in to comment.