custom bouton valider
This commit is contained in:
+14
-2
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<MainPoll :question-component="QuestionChoice" @submit="submitForm">
|
||||
<template #submit>
|
||||
<button type="submit">Submit</button>
|
||||
<button type="submit" id="form-submit">Valider</button>
|
||||
</template>
|
||||
</MainPoll>
|
||||
</template>
|
||||
@@ -27,4 +27,16 @@ async function submitForm(e: Event) {
|
||||
|
||||
navigateTo({ path: "/results", query: route.query })
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#form-submit {
|
||||
padding: .375rem .75rem;
|
||||
border-width: 0px;
|
||||
border-color: rgb(0, 0, 0);
|
||||
border-radius: 5px;
|
||||
background-color: rgb(17, 95, 239);
|
||||
color: white;
|
||||
font-size: 1em;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user