Skip to content

Commit

Permalink
Refactor dropdown selection language definition in Language.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Mar 26, 2024
1 parent c0f8c73 commit 2d3915c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cookbook/Dropdown/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ final class Language
*
* @psalm-return array<string, mixed> The dropdown definition.
*/
public static function definitions(string $type): array
public static function definitions(string $color): array
{
return [
'class()' => ['z-10 hidden bg-white divide-y divide-gray-100 rounded-lg shadow w-44 dark:bg-gray-700'],
'linkActiveClass()' => ['bg-blue-500 text-white block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white'],
'linkClass()' => ['block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white'],
'listClass()' => ['py-2 text-sm text-gray-700 dark:text-gray-200'],
'toggle()' => [Toggle::widget()->definition('selector-language', $type)],
'toggle()' => [Toggle::widget()->definition('selector-language', $color)],
];
}
}

0 comments on commit 2d3915c

Please sign in to comment.