From aa4902fa7cd03e92f9e41a18a2e34ab27a87acb5 Mon Sep 17 00:00:00 2001 From: "vivi-the-going-merry[bot]" <308115520+vivi-the-going-merry[bot]@users.noreply.github.com> Date: Thu, 17 Sep 2026 16:40:52 -0600 Subject: [PATCH] A11y: dedupe ids colliding between advanced/quick style settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The style-editor page's "Advanced Settings" accordion sections and its "Quick Settings" panel both render into the DOM unconditionally (CSS toggles which is visible), so four ids were reused between a quick-settings control and its advanced-settings equivalent for the same underlying field: frm_field_pad, frm_field_margin, and frm_border_radius. A fourth, frm_fieldset_color, was reused between the General and Form Title accordion sections — a copy-paste leftover, since the Form Title instance actually maps to the title_color field, not a fieldset border color. Renamed the quick-settings trio with the frm_style_qsettings_ prefix already used by four sibling controls in the same file, and renamed the Form Title one to frm_title_color to match its own field and its sibling frm_title_size/frm_title_margins ids. No id referenced by JS (getElementById('frm_field_pad')) was touched, so behavior is unchanged. Closes Strategy11/formidable-pro#6696 --- classes/views/styles/_form-title.php | 6 +-- classes/views/styles/_quick-settings.php | 18 ++++---- tests/phpunit/base/FrmUnitTest.php | 19 ++++++++ .../styles/test_FrmStylesController.php | 46 +++++++++++++++++++ 4 files changed, 77 insertions(+), 12 deletions(-) diff --git a/classes/views/styles/_form-title.php b/classes/views/styles/_form-title.php index 3a322f1453..be28362bdc 100644 --- a/classes/views/styles/_form-title.php +++ b/classes/views/styles/_form-title.php @@ -4,8 +4,8 @@ } ?>