Skip to content

Commit 3a57dab

Browse files
fix: documentation button now rediretcs instead of downloading (#2079)
Co-authored-by: Total Normie <[email protected]>
1 parent fa4b3de commit 3a57dab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/loud-actors-return.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-t3-app": patch
3+
---
4+
5+
Fixed Github issue #2078 related to documentation button downloading istead of redirecting. Changed it by not including the download prop if "download" is falsy. Don't be too harsh, this is my first contribution in my life.

www/src/components/landingPage/button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const specialHoverClass = specialHover
3636
target={openInNewTab ? "_blank" : "_self"}
3737
rel="noopener noreferrer"
3838
class={`${specialHoverClass} ${roundedClass} ${variantClass} ${className} inline-flex items-center px-3 lg:px-4 lg:py-3 md:px-5 py-2 text-sm md:text-base font-semibold cursor-pointer hover:no-underline transition-colors`}
39-
download={download}
39+
{...download ? { download } : {}}
4040
>
4141
<slot />
4242
</a>

0 commit comments

Comments
 (0)