From 68de25429b46b766048203d4cb8a34931e47dfca Mon Sep 17 00:00:00 2001 From: Kartik Labhshetwar Date: Wed, 17 Sep 2025 13:30:43 +0530 Subject: [PATCH] fix(ui/auth): align email focus ring with password/username --- packages/ui/components/form/inputs/TextField.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/ui/components/form/inputs/TextField.tsx b/packages/ui/components/form/inputs/TextField.tsx index 7823c66ace4170..a5e1146a226ae9 100644 --- a/packages/ui/components/form/inputs/TextField.tsx +++ b/packages/ui/components/form/inputs/TextField.tsx @@ -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) => (
(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}