Closed jamesncox closed 3 years ago
Visit the preview URL for this PR (updated for commit 2ac2d2b):
https://tcl-23-shopping-list--pr48-update-purchase-freq-hb3jczi9.web.app
(expires Tue, 01 Jun 2021 22:59:59 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
This looks ready to merge to me 👍
Description
Refactors the purchase frequency to use radio buttons instead of a drop down select, to better match our Figma design.
Related Issue
Closes #32
Acceptance Criteria
Type of Changes
Updates
The main bulk of the work was creating the Tailwind utility classes and wrapping each clock SVG, input type radio and label in divs to be able to lay out each option as visually identical to our Figma design as possible.
Uses radio buttons instead of check boxes because radio buttons are more semantically correct in this situation when only one option is required. Updated the stylings with Tailwind utility classes to make each radio button look like our Figma design:
Includes Heroicon clock icon SVG as JSX next to each radio input type.
Refactored
purchaseFrequency
to have an initial state ofnull
Refactored the Sweet Alert to alert the user if they forgot to select a radio button purchase frequency.
Visual Changes
Sweet Alert activates if one of the purchase frequencies is not selected.
Testing Steps / QA Criteria
main
rungit pull
git checkout update-purchase-frequency-checkboxes
npm install
npm start