Skip to content

Commit

Permalink
fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Nov 17, 2021
1 parent 9abed5d commit 57beae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Presenters/Admin/Tailwind.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getMenuWithoutDropdownWrapper($item)
/**
* {@inheritdoc }.
*/
public function getActiveState($item, $state = 'active-menu' )
public function getActiveState($item, $state = 'active-menu')
{
return $item->isActive() ? $state : '';
}
Expand Down Expand Up @@ -102,7 +102,7 @@ public function getMenuWithDropDownWrapper($item)
$id = Str::slug($item->title);

return '
<details '. $this->getActiveStateOnChild($item) .'>
<details ' . $this->getActiveStateOnChild($item) . '>
<summary class="block" href="#navbar-' . $id . '">
<div class="relative pb-2.5 flex items-center cursor-pointer text-secondary">
' . $this->getIcon($item) . '
Expand Down Expand Up @@ -162,15 +162,15 @@ public function getIcon($item)
if ($item->icon !== null && $item->icon !== '') {
return '<div class="w-8 h-8 flex colour-secondary items-center justify-center">
<ion-icon class="w-5 h-5 text-secondary colour-secondary ' . $item->icon . '" name="' . $item->icon . $state .'"></ion-icon>
</div>'. PHP_EOL;
</div>' . PHP_EOL;
}
}

public function getChevron($item)
{
$state = $this->chevronState($item);

return '<ion-icon data-id="cash" name="chevron' . $state . '" class="absolute right-0"></ion-icon>'. PHP_EOL;
return '<ion-icon data-id="cash" name="chevron' . $state . '" class="absolute right-0"></ion-icon>' . PHP_EOL;
}

public function chevronState($item, $state = '-up')
Expand Down

0 comments on commit 57beae6

Please sign in to comment.