Files

1.2 KiB

CMS-U8 — Offerings page on small screens (summary)

Only frontend/src/features/offerings/pages/OfferingsListPage.tsx (+ new test file). No new translations needed: the existing offerings.addButton / offerings.categories.manageButton are used.

  • Below sm (640px): "Aanbieding toevoegen" is a FAB (fixed, bottom-right, safe-area aware, plus icon, aria-label + title, 56px), "Categorieën beheren" is icon-only (44px, aria-label + title), the page has pb-24 so the last row is not covered.
  • From sm up: unchanged text buttons (hidden sm:inline-flex); FAB and icon button are sm:hidden. The existing test ids stay on the text buttons.
  • Tests (OfferingsResponsive.test.tsx, 6): classes per breakpoint, accessible names nl/en, FAB link, icon button opens the dialog, bottom space. jsdom has no media queries, so breakpoints are asserted on Tailwind classes.
  • Observations (not changed): UsersPage header is a plain flex justify-between with an action button (same pattern, no FAB, not changed); the Berichten table scrolls horizontally on narrow screens and its chips wrap. Not verified on a real narrow viewport.
  • Verification: lint and tsc -b clean, vitest 59 files / 464 tests.