mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Make ListItem component more accessible by using a button tag when clickable (#1044)
Co-authored-by: eleith <eleith@lemon.localdomain>
This commit is contained in:
parent
19dfc331f4
commit
b9e1de33c5
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<div
|
||||
<component
|
||||
:is="clickable ? 'button' : 'div'"
|
||||
class="
|
||||
w-full
|
||||
flex
|
||||
|
@ -14,7 +15,7 @@
|
|||
:class="{ 'cursor-pointer hover:shadow-md hover:bg-gray-200 dark:hover:bg-dark-gray-800': clickable }"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
</component>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
|
Loading…
Reference in a new issue