Standardize checkboxes to use MUI Checkbox component #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Checkbox styling is inconsistent across the application. Some forms use raw HTML
<input type="checkbox">with Tailwind styling, while others use MUI<Checkbox>components. This creates visual inconsistency and breaks theme integration.Problem
Three locations use non-standard raw HTML checkboxes:
frontend/src/features/documents/components/DocumentForm.tsxfrontend/src/features/vehicles/components/VehicleForm.tsxfrontend/src/features/auth/components/SignupForm.tsxThese use
<input type="checkbox">with manual Tailwind classes, while admin tables and maintenance forms correctly use MUI<Checkbox>with<FormControlLabel>.Solution
Replace raw HTML checkboxes with MUI
<Checkbox>wrapped in<FormControlLabel>:Requirements
<Checkbox>component withcolor="primary"to match red theme<FormControlLabel>for proper label association and accessibilityAcceptance Criteria
DocumentForm.tsxcheckbox uses MUI CheckboxVehicleForm.tsxcheckbox uses MUI CheckboxSignupForm.tsxcheckbox uses MUI Checkbox