fix: primary button loading indicator color (#7364)

pull/7366/head
Nafees Nazik 2023-02-24 17:25:46 +05:30 committed by GitHub
parent 3960c8a954
commit a5c21d5e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -223,7 +223,10 @@ export const Button = forwardRef<HTMLAnchorElement | HTMLButtonElement, ButtonPr
{loading && (
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 transform">
<svg
className="mx-4 h-5 w-5 animate-spin text-black dark:text-white"
className={classNames(
"mx-4 h-5 w-5 animate-spin",
color === "primary" ? "text-white dark:text-black" : "text-black dark:text-white"
)}
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24">