Skip to content

Commit 0d68163

Browse files
committed
Landing page accordions no longer collapse when opening a new one
1 parent fe41cc7 commit 0d68163

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

phpunit.xml.dist

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<phpunit backupGlobals="false"
4-
backupStaticAttributes="false"
54
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
convertDeprecationsToExceptions="false"
5+
displayDetailsOnTestsThatTriggerWarnings="true"
6+
displayDetailsOnTestsThatTriggerDeprecations="true"
107
processIsolation="false"
118
stopOnFailure="false"
129
bootstrap="./tests/bootstrap.php"

src/PHPFUI/InstaDoc/Section/Home.php

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function generate(\PHPFUI\InstaDoc\PageInterface $page, string $fullClass
1919
$container->add($parsedown->fileText($file));
2020
}
2121
$accordion = new \PHPFUI\Accordion();
22+
$accordion->addAttribute('data-multi-expand', 'true');
2223
$accordion->addAttribute('data-allow-all-closed', 'true');
2324
$container->add(new \PHPFUI\SubHeader('Package Documentation'));
2425

src/PHPFUI/InstaDoc/Section/Landing.php

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public function generate(\PHPFUI\InstaDoc\PageInterface $page, string $namespace
1717
if (\count($files))
1818
{
1919
$accordion = new \PHPFUI\Accordion();
20+
$accordion->addAttribute('data-multi-expand', 'true');
2021
$accordion->addAttribute('data-allow-all-closed', 'true');
2122
$container->add(new \PHPFUI\SubHeader('Package Documentation'));
2223

0 commit comments

Comments
 (0)