Skip to content

Commit

Permalink
Merge pull request #13 from plastic-labs/dm/pricing-card-hover
Browse files Browse the repository at this point in the history
pricing card hover state
  • Loading branch information
mckelvey authored Nov 25, 2024
2 parents 7118f67 + a5ff72d commit 0f5daea
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions components/interactive/cards/pricing-card/pricing-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,23 @@ const StyledPricingCard = styled.li<{ $inverse: boolean }>`
margin: 0;
padding: 1.25rem;
max-width: 20.4375rem;
color: var(--surface-contrast);
background: var(--surface);
border: 0.0625rem solid var(--surface-contrast);
border-radius: 0.25rem;
box-shadow: 0.25rem 0.25rem 0 0 var(--neutral-black);
list-style-type: none;
transition: box-shadow var(--ui-transition-speed) ease;
// states
&:hover:not(:active):not([href='']):not([href='#']):not([data-state]),
&[data-state='hover'] {
box-shadow: 0.375rem 0.375rem 0 0 var(--neutral-black);
}
${({ $inverse, theme }) =>
$inverse
? css`
Expand All @@ -44,7 +54,7 @@ const StyledPricing = styled.p`
align-items: baseline;
gap: 0.25rem;
margin: 0;
color: var(--surface-contrast);
color: currentColor;
text-transform: uppercase;
`

Expand All @@ -53,7 +63,7 @@ const StyledDetails = styled.ul`
flex-direction: column;
margin: 1.5rem 0;
padding: 0;
color: var(--surface-contrast);
color: currentColor;
list-style-type: none;
li {
Expand All @@ -69,7 +79,7 @@ const StyledDetails = styled.ul`
li:not(:last-child) {
padding-bottom: 0.3125rem;
border-bottom: 0.0625rem dotted var(--surface-contrast);
border-bottom: 0.0625rem dotted currentColor;
}
`

Expand Down

0 comments on commit 0f5daea

Please sign in to comment.