Skip to content

Commit d18b36d

Browse files
committed
fix icon
1 parent 4b5acf6 commit d18b36d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/Ui/Button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function hover(): static
3434
public function icon(): static
3535
{
3636
return $this->append(match ($this->size) {
37-
'2xs' => 'size-4 p-px',
37+
'2xs' => 'size-4 p-px text-sm',
3838
'xs' => 'size-4 text-base',
3939
'sm' => 'size-5 p-0.5 text-base',
4040
'base', 'md' => 'size-5 p-0.5 text-base',

src/Ui/Tag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class Tag extends Base
77
public function icon(): static
88
{
99
$this->append(match ($this->size) {
10-
'2xs' => 'size-4 p-px',
11-
'xs' => 'size-4',
10+
'2xs' => 'size-4 p-px text-sm',
11+
'xs' => 'size-4 text-base',
1212
'sm' => 'size-5 p-0.5 text-base',
1313
'base', 'md' => 'size-5 p-0.5 text-base',
1414
'lg' => 'size-6 p-0.5',

workbench/resources/views/demo.blade.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ class="w-full rounded hover:bg-gray-100" size="sm">
7272
<div class="flex items-center justify-center border-b">
7373
<x-kit::tag color="white">
7474
Tag
75+
<x-slot:button>
76+
<x-kit::button color="white" size="2xs" class="rounded-full">
77+
<x-slot:icon>
78+
<iconify-icon icon="heroicons:x-mark"></iconify-icon>
79+
</x-slot:icon>
80+
</x-kit::button>
81+
</x-slot:button>
7582
</x-kit::tag>
7683
</div>
7784
<div class="flex items-center justify-center border-b">

0 commit comments

Comments
 (0)