Skip to content

Commit

Permalink
Adjust width parameters of "Donate to Open Collective" button to enab…
Browse files Browse the repository at this point in the history
…le hover effect (#819)

* Adjust width parameters to enable hover effect

* Update donate button sizing parameters

* Update donate button format
  • Loading branch information
nung22 authored Oct 30, 2023
1 parent 877fe03 commit b127f56
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/redesign/components/Donate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import ActionButton from "./ActionButton";

export default function Donate() {
const displayCategory = useDisplayCategory();
const mobile = displayCategory === "mobile";
const desktop = displayCategory === "top";

const handleButtonClick = () => {
window.open("https://opencollective.com/psl-foundation", "_blank");
Expand Down Expand Up @@ -72,7 +74,7 @@ export default function Donate() {
</div>
}
onClick={handleButtonClick}
width={displayCategory === "mobile" ? "420px" : "130%"}
width={desktop ? 450 : mobile ? "70vw" : "30vw"}
noArrow={true}
/>
</div>
Expand Down

0 comments on commit b127f56

Please sign in to comment.