Skip to content

Commit

Permalink
remove focus:ring in button
Browse files Browse the repository at this point in the history
  • Loading branch information
suaebahmed committed Dec 6, 2023
1 parent 3753c7d commit ab05958
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Btn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
{ label, className, isBgColor, ...props }: ButtonProps,
ref
): JSX.Element => {

if (isBgColor) {
return (
<button
ref={ref}
className={`px-6 py-[6px] text-sm font-medium text-white bg-violet-600 border border-violet-600 rounded active:text-violet-500 hover:bg-transparent hover:text-violet-600 focus:outline-none focus:ring disabled:cursor-not-allowed ${className}`}
className={`px-6 py-[6px] text-sm font-medium text-white bg-violet-600 border border-violet-600 rounded active:text-violet-500 hover:bg-transparent hover:text-violet-600 focus:outline-none disabled:cursor-not-allowed ${className}`}
{...props}
>
{label}
Expand All @@ -26,7 +25,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
return (
<button
ref={ref}
className={`px-6 py-[6px] text-sm font-medium text-violet-600 bg-white border border-violet-600 rounded active:text-white hover:bg-violet-600 hover:text-white focus:outline-none focus:ring disabled:cursor-not-allowed ${className}`}
className={`px-6 py-[6px] text-sm font-medium text-violet-600 bg-white border border-violet-600 rounded active:text-white hover:bg-violet-600 hover:text-white focus:outline-none disabled:cursor-not-allowed ${className}`}
{...props}
>
{label}
Expand Down

0 comments on commit ab05958

Please sign in to comment.