fix(ui/auth): align email focus ring with password/username (#23885)
Co-authored-by: Kartik Saini <41051387+kart1ka@users.noreply.github.com> Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
This commit is contained in:
co-authored by
Kartik Saini
Udit Takkar
parent
fba096f23d
commit
689150d78a
@@ -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