Skip to content

Commit

Permalink
feat: nav component unique button styling (#428)
Browse files Browse the repository at this point in the history
* feat: nav component unique button styling

* fix: remove calculation of href
  • Loading branch information
NiclasNorin authored May 3, 2024
1 parent 7336338 commit 7b331b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/php/Component/Button/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"type": "string",
"style": "string",
"shape": "string",
"href": "string",
"href": "string|NULL",
"target": "string",
"componentElement":"string",
"labelElement":"string",
Expand Down
4 changes: 2 additions & 2 deletions source/php/Component/Nav/style/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
'icon' => isset($item['icon']['icon']) ? $item['icon']['icon'] : false,
'reversePositions' => true,
'text' => $item['label'],
'style' => $buttonStyle,
'color' => $buttonColor,
'style' => $item['buttonStyle'] ?? $buttonStyle,
'color' => $item['buttonColor'] ?? $buttonColor,
'href' => $item['href'],
'classList' => [
$baseClass . '__button',
Expand Down

0 comments on commit 7b331b2

Please sign in to comment.