Removes the hover effect from the price cards

The lift, accent border and shadow on hovering a whole card are gone;
only the booking button keeps its hover and focus effect. Also gives the
test that waits for the lazily loaded review carousel a longer timeout,
since its first import can take over a second under the full suite.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 22:53:16 +02:00
co-authored by Claude Opus 5.5
parent cb6a9b07f9
commit 02a7b8436d
7 changed files with 27 additions and 27 deletions
@@ -33,16 +33,9 @@ export default function PriceCard({ pkg }: PriceCardProps) {
bg="white"
borderWidth="1px"
borderColor="line"
// No hover effect on the card itself (owner's choice); only the
// booking button reacts
textAlign="center"
transitionProperty="transform, box-shadow, border-color"
transitionDuration="interaction"
transitionTimingFunction="smooth"
_hover={{
transform: 'translateY(-6px)',
borderColor: 'accent',
boxShadow: 'lift',
}}
_motionReduce={{ _hover: { transform: 'none' } }}
>
<Heading as="h3" fontSize="1.75rem" mb={3}>
{pkg.name}
@@ -55,6 +55,11 @@ afterEach(() => {
const content = homeContent.testimonials;
// The carousel is a lazy chunk. The first test that loads it pays for
// transforming and instrumenting it, which under the full suite with
// coverage can take well over the default 1s of findBy*
const LAZY_LOAD = { timeout: 10_000 };
// Renders the section and brings it into view, so the lazily loaded
// carousel appears
async function renderTestimonials(items = testimonials) {
@@ -67,7 +72,7 @@ async function renderTestimonials(items = testimonials) {
);
});
if (visibleTestimonials(items).length > 1) {
await screen.findByRole('region', { name: 'Reviews' });
await screen.findByRole('region', { name: 'Reviews' }, LAZY_LOAD);
}
return result;
}
@@ -106,7 +111,7 @@ describe('Testimonials', () => {
);
});
expect(
await screen.findByRole('region', { name: 'Reviews' }),
await screen.findByRole('region', { name: 'Reviews' }, LAZY_LOAD),
).toBeInTheDocument();
});