Block 184 of 297
Eligibility Check
Are-we-a-fit checklist of native checkboxes that reveals next steps via CSS :has() once every box is checked.
- Puck key
- EligibilityCheckBlock
- Export
- eligibilityCheckBlock
- React component
- <EligibilityCheck />
- Path
- components/puck/eligibility-check-block.tsx
- Dependencies
- None
- License
- MIT
About this block
When to use it, how to write for it, and what to change in the code.
What it's for
A self-check for grant applicants: a list of yes-or-no statements as checkboxes, with a next-steps panel that appears only once every box is ticked. It runs on CSS :has() with no JavaScript, and nothing is saved or sent. On large screens the intro and a program officer contact sit to the left; on phones they come first.
- A "Before you apply" section on a grants page
- A scholarship or fellowship eligibility screen
- A pre-screen before a letter of inquiry form
Writing the content
- Write each Statement so the applicant can agree with it, like "Our work serves residents of Harlow County". Put clarifications in Detail.
- Keep the list to the deal-breakers; the block allows up to 10 criteria and every one must be checked to reveal the panel.
- The note and program officer card stay visible at all times, so use them for applicants who cannot tick every box.
Accessibility
- Checkboxes sit in a fieldset whose legend comes from Checklist label, each with a clickable label and its Detail linked through aria-describedby (WCAG 1.3.1, 3.3.2).
- The native checkbox stays in place, and its label row shows the focus outline when tabbed to (WCAG 2.1.1, 2.4.7).
- The panel sits in a polite live region, but it is shown and hidden by CSS alone, so whether screen readers announce the change varies; test with the ones your audience uses.
Customizing the code
- The reveal relies on the group/fit wrapper and the group-has-[[data-fit-criterion]:not(:checked)] variants; keep data-fit-criterion on every input.
- Checked rows use has-checked:bg-indigo-50 and the panel bg-indigo-950.
Editor fields
What content editors see in the P1 sidebar when they select this block.
- Eyebrowtext
- Headingtext
- Heading levelselect
- Introtextarea
- Checklist labeltext
- Criteriaarray
- Fit panel headingtext
- Fit panel texttextarea
- Fit panel button texttext
- Fit panel button linktext
- Note headingtext
- Note texttextarea
- Program officer nametext
- Program officer titletext
- Program officer emailtext
- Program officer phonetext