fix(TextAreaComponent): Update focus state padding and icon visibility (#4630)
🔧 (textAreaComponent/index.tsx): remove unnecessary conditional class 'opacity-0' when component is focused
This commit is contained in:
parent
13620629d1
commit
af1a8b7944
1 changed files with 2 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ export default function TextAreaComponent({
|
|||
editNode ? inputClasses.editNode : inputClasses.normal({ isFocused }),
|
||||
disabled && inputClasses.disabled,
|
||||
password && !passwordVisible && "text-clip",
|
||||
isFocused && "pr-10",
|
||||
);
|
||||
};
|
||||
|
||||
|
|
@ -81,7 +82,7 @@ export default function TextAreaComponent({
|
|||
};
|
||||
|
||||
const renderIcon = () => (
|
||||
<div className={cn(isFocused && "opacity-0")}>
|
||||
<div>
|
||||
{!disabled && (
|
||||
<div
|
||||
className={cn(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue