Extends the shared blocks for the shoot types page

FramedImage and MediaText take a colour for the block behind the photo
(sand by default) and MediaText can put the photo in the right-hand
column from lg, without changing the reading order. RichParagraph moves
to the shared components, a new CallToAction closes a page with a
heading, lead and action, and the homepage pricing section gets the
anchor #prijzen. A test helper reads the generated CSS rules, since
jsdom applies neither media queries nor pseudo-elements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 08:25:27 +01:00
co-authored by Claude Opus 5.5
parent befe97af1e
commit 6cf909564b
12 changed files with 251 additions and 12 deletions
@@ -32,6 +32,16 @@ describe('Pricing', () => {
expect(await axeResults(container)).toHaveNoViolations();
});
it('can be linked to as /#prijzen', async () => {
await renderWithProviders(
<Pricing content={content} packages={packages} />,
);
expect(screen.getByRole('region', { name: 'Prijzen' })).toHaveAttribute(
'id',
'prijzen',
);
});
it('keeps the decorations away from assistive technology', async () => {
const { container } = await renderWithProviders(
<Pricing content={content} packages={packages} />,
+6 -1
View File
@@ -32,7 +32,12 @@ export default function Pricing({ content, packages }: PricingProps) {
if (shown.length === 0) return null;
return (
<PageSection labelledBy={TITLE_ID} data-testid="pricing">
<PageSection
labelledBy={TITLE_ID}
// Anchor for links such as "de pakketten" (/#prijzen)
id="prijzen"
data-testid="pricing"
>
<Box position="relative" isolation="isolate">
{content.decorations.map((decoration, index) => (
<DeferredImage