From 1d3cdb8ffa292b39032a19ab7385056898bb57fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Str=C3=B8m-Andersen?= Date: Sun, 15 Nov 2026 12:50:51 +0100 Subject: [PATCH 1/2] docs: comment on usage of cursor-pointer on all buttons --- docs/accessibility.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/accessibility.md b/docs/accessibility.md index 5c0bf212..9f7ad7af 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -16,6 +16,12 @@ - **Responsive layout.** The book grid goes from four columns to one as the screen gets narrower, and the book page stacks vertically on small screens, so the app can be used on phones. +## Pointer cursor on interactive elements + +Tailwind CSS v4 changed buttons to use `cursor: default` instead of `cursor: pointer`. We have deliberately chosen to keep the pointer cursor, which differs from the shadcn defaults. We have added cursor-pointer to the relevant shadcn class names. + +A pointer cursor is a visual signal that an element can be clicked. Using it consistently on every button and dropdown item makes it easier to see what is interactive and avoids some elements looking like they cannot be clicked. Consistent cursors make the interface more predictable, which fits the WCAG principle that components should behave in a consistent way. Because the cursor only helps people who use a mouse, it is only one part of our accessibility work, and we also follow the other accessibility requirements described in this document. + ## Automatic testing using Playwright We use [Playwright](https://playwright.dev/) to perform automatic accessibility checks. From baee55de63b617f80f8cd5bb6dab99cd4c18500c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Str=C3=B8m-Andersen?= Date: Sun, 15 Nov 2026 12:57:04 +0100 Subject: [PATCH 2/2] docs: add book filter design to project choices --- docs/choices-and-reasoning.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/choices-and-reasoning.md b/docs/choices-and-reasoning.md index 47271ccc..91c85680 100644 --- a/docs/choices-and-reasoning.md +++ b/docs/choices-and-reasoning.md @@ -68,6 +68,12 @@ When several genres are selected, we show books that belong to at least one of t Base UI provides accessible components (keyboard navigation, focus handling and ARIA attributes), and shadcn/ui gives us styled versions whose code lives in our repository, so we can adjust them to our needs. We use Tailwind CSS for styling, which replaced our CSS module files. +## Design of book filters + +The filters were first placed in a popover, with several of the filters being dropdowns inside it. This meant opening one menu right on top of another which was awkward to use and harder for keyboard and screen reader users to navigate. We tried a drawer which reduced the problem, but the dropdowns still opened inside it, so the double layer remained for both mobile and desktop users. + +The filters are now always visible in a panel on the left side of the books on desktop, so there is no menu to open and no dropdown on top of another menu. On smaller screens, the same filters are shown in a sheet that slides in from the side. We chose a sheet over a drawer because it is a more natural fit for a menu coming in from the side, and because swipe-to-close is not needed and could close the menu by accident while the user is still choosing filters. + ## Playwright E2E testing We use [Playwright](https://playwright.dev/) to run end-to-end (E2E) tests.