User tests: Successful: Unsuccessful:
Pull Request for Issue #44853 .
Restrict the js for collapsing accordions etc to relevant elements in the header
in a back-end view ./administrator/components/com_content/tmpl/articles/default.php create an accordion with the joomla core htmlhelpers, add the following lines before the line starting with <form action=
<?php echo HTMLHelper::_('bootstrap.startAccordion', 'accordion-test'); ?>
<?php echo HTMLHelper::_('bootstrap.addSlide', 'accordion-test', Text::_('TEST'), 'test-collapse', 'test'); ?>
<h1>TEST-ACCORDION</h1>
<?php echo HTMLHelper::_('bootstrap.endSlide'); ?>
<?php echo HTMLHelper::_('bootstrap.endAccordion'); ?>
When you now go to the view articles, you see the closed accordion.
Click on the accordion to open it.
The accordion opens.
now click on the topbar menu 'User Menu'
The accordion now closes although it should stay open.
The article accordion collapses when opening the user menu or tourguide dropdown
The article accordion remains open when opening the user menu or tourguide dropdown
As this is a js change you will need to either run npm i or use a prebuilt package
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository NPM Change |
Labels |
Added:
NPM Resource Changed
PR-5.3-dev
|
I have tested this item ✅ successfully on 101cefc
Status | Pending | ⇒ | Ready to Commit |
RTC
I have tested this item ✅ successfully on 101cefc
Works! Thanks @brianteeman
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44858.