fix(ui/auth): align email focus ring with password/username (#23885)
Co-authored-by: Kartik Saini <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
1 file changed
+9
-1
@@ -74,7 +74,14 @@ type AddonProps = {
|
||||
position?: "start" | "end";
|
||||
};
|
||||
|
||||
const Addon = ({ children, className, error, onClickAddon, size = "md", position = "start" }: AddonProps) => (
|
||||
const Addon = ({
|
||||
children,
|
||||
className,
|
||||
error,
|
||||
onClickAddon,
|
||||
size: _size = "md",
|
||||
position: _position = "start",
|
||||
}: AddonProps) => (
|
||||
<div
|
||||
onClick={onClickAddon && onClickAddon}
|
||||
className={classNames(
|
||||
@@ -208,6 +215,7 @@ export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function
|
||||
size={size}
|
||||
className={classNames(
|
||||
className,
|
||||
type === "email" && "focus:border-subtle focus:ring-brand-default focus:ring-2",
|
||||
"disabled:bg-subtle disabled:hover:border-subtle disabled:cursor-not-allowed"
|
||||
)}
|
||||
{...passThrough}
|
||||
|
||||
Reference in new issue
Block a user