Skip to content

Commit

Permalink
make selected premium option more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-luger committed Mar 26, 2024
1 parent 7218b15 commit 990f81d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 12 additions & 0 deletions components/Premium/BuyPremium/BuyPremium.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,15 @@
width: 100%;
}
}

/** Show the not selected price options more clearly as not selected **/
.purchaseCard :global(:not(.btn-check:checked)) + .priceRangeButton{
background-color: #2a3644;
border-color: #2a3644;
color: lightgray;
}

/** Show the selected price option more clearly as selected **/
.purchaseCard :global(.btn-check:checked) + .priceRangeButton{
border-color: white;
}
5 changes: 3 additions & 2 deletions components/Premium/BuyPremium/BuyPremium.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ function BuyPremium(props: Props) {
id={premiumType.productId}
key={premiumType.productId}
value={premiumType.productId}
className="price-range-button"
size="sm"
className={styles.priceRangeButton}
size="lg"
variant="primary"
>
{premiumType.label}
</ToggleButton>
Expand Down

0 comments on commit 990f81d

Please sign in to comment.