Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #85 from doras-to/staging
Browse files Browse the repository at this point in the history
frontend bugs with text colour on links
  • Loading branch information
trent-gezel committed Dec 23, 2023
2 parents 593a15b + a623170 commit 5e004ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/linkspage/LinksButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
text: string;
href: string;
bgColor: string;
textColor: string;
textColor?: string;
Icon: string;
className: string;
style: any;
Expand Down
6 changes: 3 additions & 3 deletions src/components/users_page/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ if (!user_user.theme.font || user_user.theme.font.font.length == 0) {
if (link.colour?.toggle) {
let userstyle: any = { backgroundColor: link.colour.background, color: getTextColorForBackground(link.colour.background) };
if (user_user.theme.inset) {
userstyle = { backgroundColor: link.colour.background, borderWidth: "2px", borderColor: user_user.theme.button, color: getTextColorForBackground(user_user.theme.button) };
userstyle = { backgroundColor: link.colour.background, borderWidth: "2px", borderColor: user_user.theme.button, color: getTextColorForBackground(user_user.theme.background) };
}
return <LinksButton client:load id={user_user.id} verifiedData={VerifiedlinksData} link={link} style={userstyle} className={user_user.theme.button_rounded} text={link.name} textColor="black" href={link.url || ""} bgColor="primary-500" Icon={link.icon || ""} />;
return <LinksButton client:load id={user_user.id} verifiedData={VerifiedlinksData} link={link} style={userstyle} className={user_user.theme.button_rounded} text={link.name} href={link.url || ""} bgColor="primary-500" Icon={link.icon || ""} />;
}
return <LinksButton client:load id={user_user.id} verifiedData={VerifiedlinksData} link={link} style={style} className={user_user.theme.button_rounded} text={link.name} textColor="black" href={link.url || ""} bgColor="primary-500" Icon={link.icon || ""} />;
return <LinksButton client:load id={user_user.id} verifiedData={VerifiedlinksData} link={link} style={style} className={user_user.theme.button_rounded} text={link.name} href={link.url || ""} bgColor="primary-500" Icon={link.icon || ""} />;
}
})
}
Expand Down

0 comments on commit 5e004ba

Please sign in to comment.