mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-21 19:04:44 -05:00
Aims to make the structure of their code more like GovukTextInputField so this convention can be extended for radios. It does that by: - moving the code in their widget methods out into the govuk_checkbox_field_widget helper function - moving the code that wraps the checkboxes in HTML to make them collapsible into the helper function - remove GovukCheckboxesMixin in favour of having the extend_params method as a stand-alone function* *The code is generic enough that it can be used with other fields that share the same type of data. These changes also: - don't alter the interface of any classes involved - don't break any tests