From aa27f9d79bd13ceaadb0f6d66772f70e64087e12 Mon Sep 17 00:00:00 2001 From: formio-sync-oss Date: Tue, 11 Aug 2026 14:02:47 -0500 Subject: [PATCH] release: @formio/bootstrap@4.0.4 (monorepo d5e3ca6531) --- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- src/bootstrap3.ts | 2 +- src/bootstrap4.ts | 2 +- src/bootstrap5.ts | 2 +- src/templates/bootstrap4/checkbox/form.ejs | 7 ++++++- src/templates/bootstrap4/day/form.ejs | 7 ++++++- src/templates/bootstrap4/file/form.ejs | 2 +- src/templates/bootstrap4/input/form.ejs | 7 ++++++- src/templates/bootstrap4/radio/form.ejs | 7 ++++++- src/templates/bootstrap4/select/form.ejs | 7 ++++++- src/templates/bootstrap4/survey/form.ejs | 9 ++++++++- src/templates/bootstrap5/checkbox/form.ejs | 7 ++++++- src/templates/bootstrap5/day/form.ejs | 7 ++++++- src/templates/bootstrap5/file/form.ejs | 2 +- src/templates/bootstrap5/input/form.ejs | 7 ++++++- src/templates/bootstrap5/radio/form.ejs | 7 ++++++- src/templates/bootstrap5/select/form.ejs | 7 ++++++- src/templates/bootstrap5/survey/form.ejs | 9 ++++++++- src/translations/en.ts | 16 +++++++++------- src/translations/index.ts | 4 ++-- 21 files changed, 107 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3ca8b168..aeaff5bb1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # @formio/bootstrap +## 4.0.4 + +### Patch Changes + +- 9813447: adding hyperlink to file comp description error +- 793d0d8: FIO-11291: fixed Field Set Legend announcement by a screen reader for all Components within the field set on the View Submission page and PDF download + +## 4.0.4-api99.0 + +### Patch Changes + +- 9813447: adding hyperlink to file comp description error +- 793d0d8: FIO-11291: fixed Field Set Legend announcement by a screen reader for all Components within the field set on the View Submission page and PDF download + ## 4.0.3 ### Patch Changes diff --git a/package.json b/package.json index 5cdafa5b1..874a4164e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@formio/bootstrap", - "version": "4.0.3", + "version": "4.0.4", "description": "Bootstrap templates for Form.io forms", "main": "lib/cjs/bootstrap5.js", "module": "lib/mjs/bootstrap5.js", diff --git a/src/bootstrap3.ts b/src/bootstrap3.ts index 630209606..c95ef7eb0 100644 --- a/src/bootstrap3.ts +++ b/src/bootstrap3.ts @@ -6,5 +6,5 @@ export default { templates: { bootstrap3, }, - translations + translations, }; diff --git a/src/bootstrap4.ts b/src/bootstrap4.ts index 394347234..728a5d523 100644 --- a/src/bootstrap4.ts +++ b/src/bootstrap4.ts @@ -6,5 +6,5 @@ export default { templates: { bootstrap4, }, - translations + translations, }; diff --git a/src/bootstrap5.ts b/src/bootstrap5.ts index e70610d88..23ac031f6 100644 --- a/src/bootstrap5.ts +++ b/src/bootstrap5.ts @@ -6,5 +6,5 @@ export default { templates: { bootstrap5, }, - translations + translations, }; diff --git a/src/templates/bootstrap4/checkbox/form.ejs b/src/templates/bootstrap4/checkbox/form.ejs index 85f00f533..859d16c16 100644 --- a/src/templates/bootstrap4/checkbox/form.ejs +++ b/src/templates/bootstrap4/checkbox/form.ejs @@ -1,5 +1,10 @@
{% var fieldsetLegendIds = ctx.instance.getFieldsetLegendIds ? ctx.instance.getFieldsetLegendIds() : ''; %} + {% var isViewReadContext = ctx.instance.options && (ctx.instance.options.readOnly || ctx.instance.options.pdf); %} + {% var viewAccessibleLabel = isViewReadContext && ctx.instance.getFormattedViewAccessibleLabel ? ctx.instance.getFormattedViewAccessibleLabel() : ''; %} + {% var useAriaLabelOnly = isViewReadContext && viewAccessibleLabel; %} + {% var ariaAttr = useAriaLabelOnly ? 'aria-label' : 'aria-labelledby'; %} + {% var ariaValue = useAriaLabelOnly ? viewAccessibleLabel : ((fieldsetLegendIds ? fieldsetLegendIds + ' ' : '') + 'l-' + ctx.instance.id + '-' + ctx.component.key); %}