@asd20/ui 3.2.981 → 3.2.983
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/atoms/Asd20Messaging/index.vue +1 -1
- package/src/components/organisms/Asd20AccessibilityIssueModal/index.vue +23 -14
- package/src/components/organisms/Asd20ComposeEmailModal/index.vue +7 -1
- package/src/components/organisms/Asd20PageContent/index.vue +12 -0
- package/src/components/templates/Asd20WayfindingImageTemplate/index.vue +4 -1
package/package.json
CHANGED
|
@@ -58,11 +58,12 @@
|
|
|
58
58
|
id="issue"
|
|
59
59
|
label="Describe the Issue"
|
|
60
60
|
help-text="<ul style='margin: 0 0 0.5rem 1rem; font-size: 0.75rem !important;'>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
<li>Specify the exact URL, program, service, or digital asset you had a problem with.</li>
|
|
62
|
+
<li>Provide as much detail as possible, including the nature of the accessibility barrier, the date and time it occurred, any assistive technology you were using, or the nature of the program or service being denied.</li>
|
|
63
|
+
<li>Describe what you believe should be done to resolve the issue.</li><br>
|
|
64
|
+
</ul>"
|
|
65
65
|
required
|
|
66
|
+
:validator="validateIssue"
|
|
66
67
|
v-model="form.issue"
|
|
67
68
|
@validated="validationErrors.issue = $event"
|
|
68
69
|
/>
|
|
@@ -152,25 +153,29 @@ export default {
|
|
|
152
153
|
console.log('Email validation errors:', validationErrors)
|
|
153
154
|
return validationErrors
|
|
154
155
|
},
|
|
156
|
+
validateIssue({ value, validationErrors }) {
|
|
157
|
+
const maxLength = 2000
|
|
158
|
+
if (!value || value.trim().length === 0) {
|
|
159
|
+
validationErrors.push('Issue description is required.')
|
|
160
|
+
} else if (value.length > maxLength) {
|
|
161
|
+
validationErrors.push(
|
|
162
|
+
`Issue description must be fewer than ${maxLength} characters.`
|
|
163
|
+
)
|
|
164
|
+
}
|
|
165
|
+
return validationErrors
|
|
166
|
+
},
|
|
167
|
+
|
|
155
168
|
captchaVerified(token) {
|
|
156
169
|
// Placeholder: reCAPTCHA not functional yet
|
|
157
170
|
this.submitIssue()
|
|
158
171
|
},
|
|
159
172
|
async sendAccessibilityIssue() {
|
|
160
|
-
alert('Submit button clicked')
|
|
161
|
-
console.log('$sendAccessibilityIssue is', this.$sendAccessibilityIssue)
|
|
162
|
-
|
|
163
173
|
if (!this.isValid) return
|
|
164
174
|
this.sending = true
|
|
165
175
|
|
|
166
176
|
try {
|
|
167
|
-
console.log('Sending accessibility issue:', this.form)
|
|
168
|
-
await this.$sendAccessibilityIssue(
|
|
169
|
-
this.form,
|
|
170
|
-
this.$config.happyfoxEndpoint,
|
|
171
|
-
this.$config.happyfoxApiKey,
|
|
172
|
-
this.$config.happyfoxAuthCode
|
|
173
|
-
)
|
|
177
|
+
// console.log('Sending accessibility issue:', this.form)
|
|
178
|
+
await this.$sendAccessibilityIssue(this.form)
|
|
174
179
|
this.submissionSuccess = true
|
|
175
180
|
|
|
176
181
|
// Wait 2 seconds, then close the modal
|
|
@@ -199,6 +204,10 @@ export default {
|
|
|
199
204
|
&::v-deep .asd20-modal__content .asd20-viewport {
|
|
200
205
|
padding: space(1);
|
|
201
206
|
}
|
|
207
|
+
::v-deep .asd20-text-area-input textarea {
|
|
208
|
+
font-family: Arial, sans-serif;
|
|
209
|
+
font-size: 1rem;
|
|
210
|
+
}
|
|
202
211
|
}
|
|
203
212
|
|
|
204
213
|
@media (min-width: 1024px) {
|
|
@@ -38,7 +38,13 @@
|
|
|
38
38
|
size="invisible"
|
|
39
39
|
@verify="captchaVerified"
|
|
40
40
|
>
|
|
41
|
-
<asd20-button
|
|
41
|
+
<asd20-button
|
|
42
|
+
:disabled="!isValid || sending"
|
|
43
|
+
label="Send"
|
|
44
|
+
horizontal
|
|
45
|
+
centered
|
|
46
|
+
bordered
|
|
47
|
+
/>
|
|
42
48
|
</vue-recaptcha>
|
|
43
49
|
<asd20-spinner size="sm" v-if="sending" />
|
|
44
50
|
</Asd20Viewport>
|
|
@@ -265,6 +265,18 @@ export default {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
+
@media (min-width: 1500px) {
|
|
269
|
+
.asd20-page-content {
|
|
270
|
+
&--grid {
|
|
271
|
+
.primary-messaging-section,
|
|
272
|
+
.secondary-messaging-section {
|
|
273
|
+
&::v-deep > * {
|
|
274
|
+
max-width: 29%;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
268
280
|
|
|
269
281
|
@media (min-width: 1790px) {
|
|
270
282
|
.asd20-page-content {
|
|
@@ -330,6 +330,8 @@ export default {
|
|
|
330
330
|
// }
|
|
331
331
|
}
|
|
332
332
|
.asd20-page-content {
|
|
333
|
+
padding: space(1);
|
|
334
|
+
|
|
333
335
|
.notification-group--inline {
|
|
334
336
|
flex-basis: 100%;
|
|
335
337
|
margin: space(2) space(3) space(0) space(3);
|
|
@@ -343,6 +345,7 @@ export default {
|
|
|
343
345
|
display: flex;
|
|
344
346
|
justify-content: flex-start;
|
|
345
347
|
padding: space(1) space(2) space(1) space(2);
|
|
348
|
+
width: 100%;
|
|
346
349
|
.asd20-messaging {
|
|
347
350
|
margin-bottom: space(2) !important;
|
|
348
351
|
// flex-grow: 1;
|
|
@@ -352,7 +355,7 @@ export default {
|
|
|
352
355
|
&--grid {
|
|
353
356
|
.primary-messaging-section,
|
|
354
357
|
.secondary-messaging-section {
|
|
355
|
-
--minimum-column-width: 1000px;
|
|
358
|
+
// --minimum-column-width: 1000px;
|
|
356
359
|
--gutter: #{space(1)};
|
|
357
360
|
display: flex;
|
|
358
361
|
flex-wrap: wrap;
|