Added alts to images
All checks were successful
pipeline / build-and-push-images (push) Successful in 23s
pipeline / deploy (push) Successful in 6s

This commit is contained in:
2024-12-02 15:51:04 +01:00
parent 5034589565
commit 7332a3a8e0
2 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { LANE_IMAGES, LANE_IMAGES_HOVER, LANE_IMAGES_SELECTED } from '~/utils/cdragon';
import { LANE_IMAGES, LANE_IMAGES_HOVER, LANE_IMAGES_SELECTED, POSITIONS_STR } from '~/utils/cdragon';
const emit = defineEmits<{
filterChange: [value: number]
@@ -40,6 +40,7 @@ function handleHover(laneImg: Ref<string>, index: number) {
<template>
<div style="width: fit-content;">
<img v-for="(laneImg, index) in laneImgs"
:alt="POSITIONS_STR[index]"
class="lane-img" :src="laneImg.value"
@mouseout="handleMouseOut(laneImg, index)"
@mouseover="handleHover(laneImg, index)"