User tests: Successful: Unsuccessful:
Fix aria-expanded check
none.
aria-expaded always set to false
aria-expaded set to true when active
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
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
Could you you trim the left part instead of adding space in the right part?
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;
Seems that there were several changes on this file in #41655 merged into 6.0 which could result in a conflict.