Skip to content

Commit 8370aa5

Browse files
committed
Code styles and minor css mods
1 parent 25f793d commit 8370aa5

File tree

3 files changed

+18
-35
lines changed

3 files changed

+18
-35
lines changed

examples/support-page/Example.vue

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
v-bind:language="language"
1212
v-bind:progressbar="false"
1313
>
14-
<!-- Custom content for the Complete/Submit screen slots in the FlowForm component -->
14+
<!-- Custom content for the Complete/Submit screen slots in the FlowForm component -->
1515
<!-- We've overriden the default "complete" slot content -->
16-
<template v-slot:complete>
16+
<template v-slot:complete>
1717
<div class="section-wrap">
1818
<p>
1919
<span class="fh2">Thank you for visiting our technical support page. 🙏</span>
@@ -27,24 +27,8 @@
2727
<!-- We've overriden the default "completeButton" slot content -->
2828
<template v-slot:completeButton>
2929
<div class="f-submit" v-if="!submitted">
30-
<button
31-
class="o-btn-action"
32-
ref="button"
33-
type="submit"
34-
href="#"
35-
v-on:click.prevent="onSendData()"
36-
aria-label="Press to submit"
37-
>
38-
<span>Exit</span>
39-
</button>
40-
<a class="f-enter-desc"
41-
href="#"
42-
v-on:click.prevent="onSendData()"
43-
v-html="language.formatString(language.pressEnter)">
44-
</a>
30+
<!-- Leave empty to hide default submit button -->
4531
</div>
46-
47-
<!-- <p class="text-success" v-if="submitted">Your request has been submitted successfully.</p> -->
4832
</template>
4933
</flow-form>
5034
</div>
@@ -75,7 +59,7 @@
7559
language: new LanguageModel(),
7660
// Create question list with QuestionModel instances
7761
questions: [
78-
new QuestionModel({
62+
new QuestionModel({
7963
id: 'multiple_choice',
8064
tagline: "Welcome to our support page!",
8165
title: 'Hi 👋, how can we help you today?',
@@ -91,7 +75,7 @@
9175
new ChoiceOption({
9276
label: 'I wish to check my ticket status',
9377
value: 'enter_ticket'
94-
}),
78+
}),
9579
],
9680
jump: {
9781
technical_issue: 'technical_issue',
@@ -110,21 +94,21 @@
11094
descriptionLink: [
11195
new LinkOption({
11296
url: '#',
113-
text: 'frequently asked questions',
97+
text: 'FAQs',
11498
target: '_self'
11599
})
116100
],
117101
options: [
118-
new ChoiceOption({
102+
new ChoiceOption({
119103
label: 'Yes, but still couldn’t find the answer.',
120104
value: 'faq_no'
121-
}),
105+
}),
122106
],
123107
jump: {
124108
faq_no: 'faq_no'
125109
}
126110
}),
127-
new QuestionModel({
111+
new QuestionModel({
128112
id: 'enter_ticket',
129113
tagline: 'Support page > Ticket status',
130114
title: 'Please enter your 6-digit code',
@@ -135,11 +119,10 @@
135119
mask: '#-#-#-#-#-#',
136120
placeholder: '#-#-#-#-#-#'
137121
}),
138-
new QuestionModel({
122+
new QuestionModel({
139123
id: 'ticket_status',
140124
tagline: 'Support page > Ticket status',
141125
title: 'Good news - the wheels are turning, your ticket is being processed!😉',
142-
content: 'Press continue to exit the support form',
143126
type: QuestionType.SectionBreak,
144127
jump: {
145128
_other: '_submit'
@@ -148,12 +131,12 @@
148131
new QuestionModel({
149132
id: 'faq_no',
150133
tagline: 'Submit issue > Step 2/3',
151-
title: 'Enter your question to receive a ticket',
134+
title: 'Please describe your problem',
152135
type: QuestionType.LongText,
153136
required: true,
154137
placeholder: 'Start typing here...',
155138
}),
156-
new QuestionModel({
139+
new QuestionModel({
157140
id: 'ticket',
158141
tagline: 'Submit issue > Step 3/3',
159142
title: 'Your ticket number is: ' + this.getTicket(),
@@ -162,7 +145,7 @@
162145
jump: {
163146
_other: '_submit'
164147
}
165-
}),
148+
})
166149
]
167150
}
168151
},
@@ -247,7 +230,7 @@
247230
</script>
248231

249232
<style lang="css">
250-
@import '../../src/assets/css/themes/theme-minimal.css';
233+
@import '../../src/assets/css/themes/theme-green.css';
251234
/* If using the npm package, use the following lines instead of the one above */
252235
/* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.css'; */
253236
/* @import '~@ditdot-dev/vue-flow-form/dist/vue-flow-form.theme-green.css'; */

src/assets/css/common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ span.f-text {
421421

422422
span.f-sub {
423423
margin-bottom: 8px;
424-
margin-top: 6px;
424+
margin-top: 5px;
425425
}
426426

427427
span.f-sub span:not(.f-uppercase) {
@@ -716,7 +716,7 @@ a.f-disabled {
716716
}
717717

718718
.v-form {
719-
margin-top: 10vh;
719+
margin-top: 12vh;
720720
}
721721

722722
}

src/assets/css/themes/theme-green.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*/
1010

1111
:root {
12-
--bg-color: #41B883;
12+
--bg-color: #3EAF7C;
1313
--main-text-color: #fff;
1414
--secondary-text-color: #B5EBD3;
15-
--tertiary-text-color: #52BE8E;
15+
--tertiary-text-color: #52B789;
1616
--main-accent-color: #111;
1717
--secondary-accent-color: #ECF80D;
1818
}

0 commit comments

Comments
 (0)