@asd20/ui 3.2.978 → 3.2.980

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.978",
8
+ "version": "3.2.980",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -11,6 +11,7 @@
11
11
  ? undefined
12
12
  : '_blank'
13
13
  "
14
+ v-bind="[trackingCode ? { [trackingCode]: '' } : {}]"
14
15
  >
15
16
  <asd20-icon
16
17
  v-if="icon"
@@ -39,6 +40,7 @@ export default {
39
40
  opposite: { type: Boolean, default: false },
40
41
  hideLabel: { type: Boolean, default: false },
41
42
  link: { type: String, default: '' },
43
+ trackingCode: { type: String, default: '' },
42
44
  icon: { type: String, default: '' },
43
45
  badge: { type: Number, default: 0 },
44
46
  size: {
@@ -76,14 +78,12 @@ export default {
76
78
  }
77
79
  },
78
80
  tag() {
79
- return this.link ? 'a' : 'button'
81
+ if (!this.link || this.link === ' ') {
82
+ return 'button'
83
+ } else {
84
+ return 'a'
85
+ }
80
86
  },
81
- // openNewWindow() {
82
- // if (!this.link) return ''
83
- // return this.link[0] === '/' || this.link.indexOf('asd20.org') > -1
84
- // ? ''
85
- // : '_blank'
86
- // },
87
87
  },
88
88
  }
89
89
  </script>
@@ -214,6 +214,8 @@ export default {
214
214
  padding: 0;
215
215
  display: flex;
216
216
  align-items: center;
217
+ flex-direction: column;
218
+ justify-content: flex-start;
217
219
 
218
220
  .asd20-messaging__content {
219
221
  position: relative;
@@ -225,13 +227,13 @@ export default {
225
227
  .message-image {
226
228
  position: relative;
227
229
  padding-top: 0.5rem;
228
- padding-right: space(1);
230
+ padding-bottom: space(1);
229
231
  margin: 0;
230
232
  border-top: none;
231
233
  padding-top: 0;
232
234
  img {
233
- width: 15vw;
234
- height: 15vw;
235
+ width: 100%;
236
+ height: 20vw;
235
237
  }
236
238
  }
237
239
  }
@@ -69,7 +69,7 @@
69
69
  <asd20-button
70
70
  label="Submit Issue"
71
71
  :disabled="!isValid || sending"
72
- @click="sendAccessibilityIssue"
72
+ @click.native="sendAccessibilityIssue"
73
73
  horizontal
74
74
  centered
75
75
  bordered
@@ -149,6 +149,7 @@ export default {
149
149
  if (!pattern.test(value)) {
150
150
  validationErrors.push('A valid email address is required')
151
151
  }
152
+ console.log('Email validation errors:', validationErrors)
152
153
  return validationErrors
153
154
  },
154
155
  captchaVerified(token) {
@@ -156,10 +157,14 @@ export default {
156
157
  this.submitIssue()
157
158
  },
158
159
  async sendAccessibilityIssue() {
159
- if (!this.isValid || !this.$sendAccessibilityIssue) return
160
+ alert('Submit button clicked')
161
+ console.log('$sendAccessibilityIssue is', this.$sendAccessibilityIssue)
162
+
163
+ if (!this.isValid) return
160
164
  this.sending = true
161
165
 
162
166
  try {
167
+ console.log('Sending accessibility issue:', this.form)
163
168
  await this.$sendAccessibilityIssue(
164
169
  this.form,
165
170
  this.$config.happyfoxEndpoint,
@@ -183,7 +183,7 @@ export default {
183
183
  padding: space(2) space(1) space(2) space(2);
184
184
  &::v-deep > * {
185
185
  // flex: 1 1 var(--minimum-column-width);
186
- // margin: space(1) !important;
186
+ margin: space(1) !important;
187
187
  }
188
188
  }
189
189
  &--grid {
@@ -193,13 +193,14 @@ export default {
193
193
  --gutter: #{space(1)};
194
194
  display: flex;
195
195
  flex-wrap: wrap;
196
- // margin: calc(var(--gutter) * -1);
196
+ margin: calc(var(--gutter) * -1);
197
197
  padding: space(2) space(1) space(2) space(2);
198
198
 
199
199
  &::v-deep > * {
200
200
  // flex: 1 1 var(--minimum-column-width);
201
201
  // margin: var(--gutter) !important;
202
- // max-width: 45%;
202
+ max-width: 42%;
203
+ flex-grow: 1;
203
204
  }
204
205
  }
205
206
  }
@@ -239,8 +240,7 @@ export default {
239
240
  &::v-deep > * {
240
241
  // flex: 1 1 var(--minimum-column-width);
241
242
  // margin: var(--gutter) !important;
242
- max-width: 45%;
243
- flex-grow: 1;
243
+ max-width: 28%;
244
244
  }
245
245
  }
246
246
  }
@@ -126,6 +126,7 @@
126
126
  :label="callsToAction[0].label"
127
127
  :icon="callsToAction[0].icon"
128
128
  :link="callsToAction[0].url"
129
+ :trackingCode="callsToAction[0].trackingCode"
129
130
  reversed
130
131
  horizontal
131
132
  centered
@@ -136,6 +137,7 @@
136
137
  :label="callsToAction[1].label"
137
138
  :icon="callsToAction[1].icon"
138
139
  :link="callsToAction[1].url"
140
+ :trackingCode="callsToAction[1].trackingCode"
139
141
  reversed
140
142
  horizontal
141
143
  centered
@@ -73,14 +73,6 @@
73
73
  omit-detail-links
74
74
  omit-calls-to-action
75
75
  />
76
- <asd20-page-content
77
- :class="wayFindingPrimaryMessages.length > 3 ? 'limit-message-width' : ''"
78
- :primary-messages="wayFindingPrimaryMessages"
79
- :secondary-messages="secondaryMessages"
80
- omit-body-content
81
- omit-calls-to-action
82
- grid
83
- />
84
76
 
85
77
  <!-- Feed Section -->
86
78
  <asd20-feeds-section
@@ -97,6 +89,15 @@
97
89
  :organization-options="organizationOptions"
98
90
  ></asd20-feeds-section>
99
91
 
92
+ <asd20-page-content
93
+ :class="wayFindingPrimaryMessages.length > 3 ? 'limit-message-width' : ''"
94
+ :primary-messages="wayFindingPrimaryMessages"
95
+ :secondary-messages="secondaryMessages"
96
+ omit-body-content
97
+ omit-calls-to-action
98
+ grid
99
+ />
100
+
100
101
  <!-- Photos & Videos -->
101
102
  <asd20-media-section
102
103
  v-if="firstMessage.images.length > 1 || firstMessage.videos.length"
@@ -95,6 +95,7 @@
95
95
  <asd20-page-content
96
96
  :primary-messages="wayFindingPrimaryMessages"
97
97
  :secondary-messages="secondaryMessages"
98
+ :organization-options="organizationOptions"
98
99
  omit-body-content
99
100
  omit-calls-to-action
100
101
  grid
@@ -340,6 +341,7 @@ export default {
340
341
  }
341
342
  .asd20-page-content:not(.intro-message) .primary-messaging-section {
342
343
  display: flex;
344
+ justify-content: space-between;
343
345
  padding: space(1) space(2) space(1) space(2);
344
346
  .asd20-messaging {
345
347
  margin-bottom: space(2) !important;