Skip to content

Commit

Permalink
📝 fix input error border style
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Nov 21, 2023
1 parent a7e3357 commit c05a4f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/Form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function FormItem({
onChange={(e) => setResult(inputName, e.target.value)}
placeholder="请输入"
className={clsx("form-input", {
"input-error": !result[inputName],
"form-input-error": !result[inputName],
})}
/>
)}
Expand Down
4 changes: 4 additions & 0 deletions website/src/components/Form/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

.form-input {
@apply input input-bordered w-full;

&-error {
@apply input-error;
}
}

.form-label {
Expand Down

0 comments on commit c05a4f0

Please sign in to comment.