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:
@@ -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} />,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user