Page MenuHomePhabricator

Create a Toggle Pattern
Closed, ResolvedPublic1 Estimated Story Points

Description

The new donation form uses a toggle that allows people to specify if they want a donation receipt. We need to create a pattern and component for this.

Acceptance Criteria

  • A new toggle pattern is created in the pattern library
  • This pattern is implemented in production
  • A new shared component is created that uses a v-model and emits the appropriate events
  • This field should be accessible

Implementation Notes

  • The form field running the toggle should be a checkbox.
  • The checkbox can be hidden with the CSS rule appearance: none
  • We need focus and hover states implemented for accessibility. The visuals of these states should match the other form accents for consistency.
  • We can start with a copy of the existing checkbox field (CheckboxSingleFormInput)

Notes
Here's an example toggle as inspiration https://codepen.io/morgoe/pen/VvzWQg

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
ResolvedAbbanWMDE

Event Timeline

AbbanWMDE set the point value for this task to 8.
gabriel-wmde changed the point value for this task from 8 to 1.Sep 30 2025, 9:50 AM