mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-31 22:11:26 +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:
@@ -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">
|
||||
|
Reference in New Issue
Block a user