RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar janschoenherr
janschoenherr
27 Mar 2026
  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Fix aria-expanded check

Testing Instructions

Install Blog Sample Data.
Click Components>Smart Search>Filters.
Click Add a filter button.
Use browser's element inspector to see aria-expanded attribute.
It should be either true or false.

Actual result BEFORE applying this Pull Request

aria-expaded always set to false

Expected result AFTER applying this Pull Request

aria-expaded set to true when active

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar janschoenherr janschoenherr - open - 27 Mar 2026
avatar janschoenherr janschoenherr - change - 27 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2026
Category Libraries
avatar chmst
chmst - comment - 27 Mar 2026

Seems that there were several changes on this file in #41655 merged into 6.0 which could result in a conflict.

avatar tecpromotion
tecpromotion - comment - 27 Mar 2026

Seems that there were several changes on this file in #41655 merged into 6.0 which could result in a conflict.

That’s then up to the RM.

avatar janschoenherr janschoenherr - change - 28 Mar 2026
The description was changed
avatar janschoenherr janschoenherr - edited - 28 Mar 2026
avatar dgrammatiko
dgrammatiko - comment - 29 Mar 2026

Could you you trim the left part instead of adding space in the right part?

avatar janschoenherr
janschoenherr - comment - 29 Mar 2026

Maybe refactor it like this?

        $group        = static::$loaded[__CLASS__ . '::startAccordion'][$selector];
        $active       = $group['active'] === $id;
        $in           = $active ? ' show' : '';
        $collapsed    = $active ? '' : ' collapsed';
        $parent       = $group['parent'] ? 'data-bs-parent="' . $group['parent'] . '"' : '';
        $class        = (!empty($class)) ? ' ' . $class : '';
        $ariaExpanded = $active;
avatar janschoenherr janschoenherr - change - 16 May 2026
Labels Added: bug PR-5.4-dev
avatar QuyTon
QuyTon - comment - 18 May 2026

Install Blog Sample Data.
Click Components>Smart Search>Filters.
Click Add a filter button.
Use browser's element inspector to see aria-expanded attribute.
It should be true and not 1.

47483-aria-expanded
avatar janschoenherr
janschoenherr - comment - 18 May 2026

That's fixed now, thanks.

avatar QuyTon QuyTon - test_item - 18 May 2026 - Tested successfully
avatar QuyTon
QuyTon - comment - 18 May 2026

I have tested this item ✅ successfully on ea64c46


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar QuyTon
QuyTon - comment - 18 May 2026

I have tested this item ✅ successfully on ea64c46


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar QuyTon
QuyTon - comment - 20 May 2026

$collapsed can be refactored/simplified in the same manner.

avatar QuyTon QuyTon - test_item - 21 May 2026 - Tested successfully
avatar QuyTon
QuyTon - comment - 21 May 2026

I have tested this item ✅ successfully on 7f4b946


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar QuyTon
QuyTon - comment - 21 May 2026

I have tested this item ✅ successfully on 7f4b946


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar janschoenherr
janschoenherr - comment - 22 May 2026

@QuyTon I've simplified it further. Could you test again, please?

avatar QuyTon
QuyTon - comment - 22 May 2026

Please fix PHP code style.

avatar brianteeman
brianteeman - comment - 22 May 2026

please add some test instructions

avatar janschoenherr janschoenherr - change - 22 May 2026
The description was changed
avatar janschoenherr janschoenherr - edited - 22 May 2026
avatar janschoenherr janschoenherr - change - 22 May 2026
The description was changed
avatar janschoenherr janschoenherr - edited - 22 May 2026
avatar janschoenherr janschoenherr - change - 22 May 2026
The description was changed
avatar janschoenherr janschoenherr - edited - 22 May 2026
avatar QuyTon QuyTon - test_item - 23 May 2026 - Tested successfully
avatar QuyTon
QuyTon - comment - 23 May 2026

I have tested this item ✅ successfully on 0adbd20


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar QuyTon
QuyTon - comment - 23 May 2026

I have tested this item ✅ successfully on 0adbd20


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar brianteeman
brianteeman - comment - 23 May 2026

weird that this problem is not repeatable in j6

image
avatar janschoenherr
janschoenherr - comment - 23 May 2026

@brianteeman thanks for checking. It's broken for me:

Bildschirmfoto 2026-05-23 um 19 29 03

Make sure not to toggle the accordion item. It's only broken initially.

avatar janschoenherr
janschoenherr - comment - 23 May 2026

@brianteeman thanks for checking. Make sure not to toggle the accordion item. It's only broken initially.

Bildschirmfoto 2026-05-23 um 19 29 03
avatar ThomasFinnern ThomasFinnern - test_item - 5 Jun 2026 - Tested successfully
avatar ThomasFinnern
ThomasFinnern - comment - 5 Jun 2026

I have tested this item ✅ successfully on 0adbd20

We opened the smart search filter field. We looked for aria-expanded and found two true, around four false and some which had no assigned values.
After the patch there the "not assigned" values were set to either true or false.
It looks like four "false" were kept and one changed to true (could have been empty before


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar ThomasFinnern
ThomasFinnern - comment - 5 Jun 2026

I have tested this item ✅ successfully on 0adbd20

We opened the smart search filter field. We looked for aria-expanded and found two true, around four false and some which had no assigned values.
After the patch there the "not assigned" values were set to either true or false.
It looks like four "false" were kept and one changed to true (could have been empty before


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar richard67 richard67 - change - 5 Jun 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 5 Jun 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar richard67
richard67 - comment - 5 Jun 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47483.

avatar muhme muhme - change - 6 Jun 2026
Labels Added: RTC
avatar muhme
muhme - comment - 6 Jun 2026

✅ Final Test before merge with JBT

  • Before PR seen problem initial only 'aria-expanded' without any '="true"' or '="false"'
  • Applied PR with Patch Tester
    • Seen initial 'aria-expanded="true"' and is set 'false' for closed control and 'true' again on reopen
avatar muhme muhme - change - 6 Jun 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-06-06 11:36:50
Closed_By muhme
avatar muhme muhme - close - 6 Jun 2026
avatar muhme muhme - merge - 6 Jun 2026
avatar muhme
muhme - comment - 6 Jun 2026

Thank you very much @janschoenherr for your contribution. Thank you @QuyTon for reviewing and testing. Thank you @tecpromotion for review. Thanks to @chmst and @brianteeman for supporting. Thank you @ThomasFinnern for testing.

Add a Comment

Login with GitHub to post a comment