Skip to content

Commit e8961f7

Browse files
committed
fix(a11y): add focus effects
1 parent 49e080c commit e8961f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/frontendmu-nuxt/components/cards/event-card-modern.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const props = defineProps({
2626
<template>
2727
<div class="py-2 group">
2828
<div
29-
class="relative rounded-xl flex flex-col md:flex-row p-4 md:p-0 gap-2 group bg-white dark:bg-verse-900/10 dark:border-verse-100/10 group-hover:shadow-lg transition-all duration-300 border-2 border-verse-100 group-hover:border-verse-400 group-hover:scale-105"
29+
class="relative rounded-xl flex flex-col md:flex-row p-4 md:p-0 gap-2 group bg-white dark:bg-verse-900/10 dark:border-verse-100/10 group-hover:shadow-lg group-focus-within:shadow-lg transition-all duration-300 border-2 border-verse-100 group-hover:border-verse-400 group-focus-within:border-verse-400 group-hover:scale-105 group-focus-within:scale-105"
3030
>
3131
<!-- Date -->
3232
<div v-if="event.Date" class="">
@@ -44,7 +44,7 @@ const props = defineProps({
4444

4545
<!-- Title -->
4646
<h3
47-
class="leading-2 text-xl font-semibold flex-1 py-2 text-verse-500 dark:text-verse-400 group-hover:text-verse-500 dark:group-hover:text-verse-100"
47+
class="leading-2 text-xl font-semibold flex-1 py-2 text-verse-500 dark:text-verse-400 group-hover:text-verse-500 group-focus-within:text-verse-500 dark:group-hover:text-verse-100 dark:group-focus-within:text-verse-100"
4848
>
4949
<NuxtLink :href="`/meetup/${event.id}`" class="w-[300px] md:w-96 focus:outline-none">
5050
<span class="absolute inset-0" aria-hidden="true" />

0 commit comments

Comments
 (0)