Skip to content

Commit

Permalink
Merge pull request #878 from livewire/josh/fix-inset-link-button-display
Browse files Browse the repository at this point in the history
Fix inset link buttons not looking like buttons
  • Loading branch information
calebporzio authored Dec 18, 2024
2 parents f21d817 + 3e486df commit d2aeeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/resources/views/flux/button/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
'sm' => 'h-8 text-sm rounded-md' . ' ' . ($square ? 'w-8' : 'px-3'),
'xs' => 'h-6 text-xs rounded-md' . ' ' . ($square ? 'w-6' : 'px-2'),
})
->add($inset ? 'flex' : 'inline-flex') // inline-flex is weird with negative margins...
->add('inline-flex') // Buttons are inline by default but links are blocks, so inline-flex is needed here to ensure link-buttons are displayed the same as buttons...
->add($inset ? match ($size) { // Inset...
'base' => $square
? Flux::applyInset($inset, top: '-mt-2.5', right: '-mr-2.5', bottom: '-mb-2.5', left: '-ml-2.5')
Expand Down

0 comments on commit d2aeeb3

Please sign in to comment.