diff --git a/CHANGELOG.md b/CHANGELOG.md index d3bbfd9..466a24f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to accessible-forms will be documented in this file. +## [0.1.3](https://github.com/studio24/accessible-forms/compare/v0.1.3...v0.1.4) (2026-04-10) + +### Bug Fixes + +* Set mapped to false by default for custom Html block type, to prevent the need to do so manually. +* Moved choice fieldset element from form_row_render to choice_widget_expanded to allow checkbox attributes to be added to fieldset. (solves issue where screen readers were not announcing errors on checkbox/radio focus) +* Fixed multiple validation errors for one field being listed as one error and appended to the same string. +* Appended _0 to the error block so that the first checkbox/radio is highlighted when clicking the error summary anchor. + + ## [0.1.3](https://github.com/studio24/accessible-forms/compare/v0.1.2...v0.1.3) (2026-04-10) ### Bug Fixes diff --git a/src/FieldTypes/Html.php b/src/FieldTypes/Html.php index a930cc0..ff863c6 100644 --- a/src/FieldTypes/Html.php +++ b/src/FieldTypes/Html.php @@ -13,8 +13,9 @@ class Html extends AbstractType public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ + 'mapped' => false, 'html' => null, - 'view' => null + 'view' => null, ]); } diff --git a/src/Resources/views/Form/accessible-forms.html.twig b/src/Resources/views/Form/accessible-forms.html.twig index 2191d6e..402067b 100644 --- a/src/Resources/views/Form/accessible-forms.html.twig +++ b/src/Resources/views/Form/accessible-forms.html.twig @@ -109,22 +109,19 @@ {# Adjust order of elements in form row, add fieldset for compound groups #} {%- block form_row_render -%}