Skip to content

Commit 2235fca

Browse files
authored
swap inline style with tailwind-class
- changes a inline style `cursor:pointer` with the tailwind-class `cursor-pointer` applied conditionally (if `$url` is set) via the `class`-helper of the component.
1 parent 682840c commit 2235fca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/views/tailwind/components/table/row.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
@endif
88

99
<tr
10-
{{ $attributes->merge($customAttributes) }}
10+
$attributes->merge($customAttributes)->class([
11+
'h-auto block border-t-4 md:border-t-0 py-4 px-2 md:p-0 md:table-row w-screen',
12+
'cursor-pointer' => $url
13+
]) }}
1114

1215
@if ($url)
1316
onclick="window.open('{{ $url }}', '{{ $target }}')"
14-
style="cursor:pointer"
1517
@endif
1618
>
1719
{{ $slot }}

0 commit comments

Comments
 (0)