Skip to content

Commit

Permalink
Landing page accordions no longer collapse when opening a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui committed May 12, 2023
1 parent fe41cc7 commit 0d68163
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="false"
displayDetailsOnTestsThatTriggerWarnings="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="./tests/bootstrap.php"
Expand Down
1 change: 1 addition & 0 deletions src/PHPFUI/InstaDoc/Section/Home.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function generate(\PHPFUI\InstaDoc\PageInterface $page, string $fullClass
$container->add($parsedown->fileText($file));
}
$accordion = new \PHPFUI\Accordion();
$accordion->addAttribute('data-multi-expand', 'true');
$accordion->addAttribute('data-allow-all-closed', 'true');
$container->add(new \PHPFUI\SubHeader('Package Documentation'));

Expand Down
1 change: 1 addition & 0 deletions src/PHPFUI/InstaDoc/Section/Landing.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function generate(\PHPFUI\InstaDoc\PageInterface $page, string $namespace
if (\count($files))
{
$accordion = new \PHPFUI\Accordion();
$accordion->addAttribute('data-multi-expand', 'true');
$accordion->addAttribute('data-allow-all-closed', 'true');
$container->add(new \PHPFUI\SubHeader('Package Documentation'));

Expand Down

0 comments on commit 0d68163

Please sign in to comment.