Skip to content
Snippets Groups Projects
Commit 0b91bb68 authored by jensmjahle's avatar jensmjahle
Browse files

Add tab and enter controls for ActiveMilestoneDisplay.vue

parent e5ef777b
No related branches found
No related tags found
1 merge request!73Wcag improvements
......@@ -17,8 +17,10 @@ const imageUrl = "src/assets/pig.png"
const openMilestone = () => {
if (props.id !== undefined) {
useMilestoneStore().setMilestoneId(props.id)
useMilestoneStore().setMilestoneId(props.id)
router.push("/homepage/path")
console.log(useMilestoneStore().$state.milestoneId)
}
console.log("Milestone id is not defined")
}
......@@ -29,6 +31,8 @@ const openMilestone = () => {
<template>
<div class="active-milestone-display"
@click="openMilestone"
@keyup.enter="openMilestone"
tabindex="0"
:style="{
backgroundImage: image ? 'url(' + image + ')' : 'url(' + imageUrl + ')'
}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment