@pocketprep/ui-kit 3.8.3 → 3.8.5

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.
@@ -70,7 +70,9 @@ export default class ModalContainer extends Vue {
70
70
 
71
71
  // Reset focus to last element in modal so next tab will move it to top
72
72
  const modalContainerEl = this.$refs['modalContainer'] as HTMLElement
73
- const modalFocusableEls = Array.from<HTMLElement>(modalContainerEl.querySelectorAll(focusableSelectors))
73
+ const modalFocusableEls = Array.from<HTMLElement>(modalContainerEl
74
+ .querySelectorAll(focusableSelectors))
75
+ .filter(el => !('disabled' in el && el.disabled === true))
74
76
  if (modalFocusableEls.length) {
75
77
  modalFocusableEls[modalFocusableEls.length - 1]?.focus()
76
78
  modalFocusableEls[modalFocusableEls.length - 1]?.blur()
@@ -81,7 +83,7 @@ export default class ModalContainer extends Vue {
81
83
  if (this.modalNumber === this.numberOfModals()) { // Only focus on the last open panel
82
84
  const target = (event as FocusEvent).target as HTMLElement // The element receiving focus
83
85
  const isFocusOutside = target && modalContainerEl && !modalContainerEl.contains(target)
84
- const hasCalendarClass = target
86
+ const hasCalendarClass = target?.classList
85
87
  && Array.from(target.classList).find(
86
88
  c => c === 'button-next-month' || c === 'button-previous-month' || c === 'day-item'
87
89
  )
@@ -572,7 +572,7 @@ const handleClick = (event: MouseEvent) => {
572
572
  }
573
573
 
574
574
  &--review-mode#{&}--distractor {
575
- color: $slate;
575
+ color: $ash;
576
576
 
577
577
  &--dark {
578
578
  color: $fog;
@@ -193,7 +193,7 @@ export default class SidePanel extends Vue {
193
193
  const target = (event as FocusEvent).target as HTMLElement // The element receiving focus
194
194
  const sidePanelContainerEl = this.$refs['sidepanelContainer'] as HTMLElement
195
195
  const isFocusOutside = target && sidePanelContainerEl && !sidePanelContainerEl.contains(target)
196
- const hasCalendarClass = target
196
+ const hasCalendarClass = target?.classList
197
197
  && Array.from(target.classList).find(
198
198
  c => c === 'button-next-month' || c === 'button-previous-month' || c === 'day-item'
199
199
  )
@@ -140,20 +140,20 @@ export default class Tag extends Vue {
140
140
  }
141
141
 
142
142
  &--active {
143
- border: none;
143
+ border: 1px solid rgba($green, 0.6);
144
144
  background: $meadow;
145
- color: $scifi-takeout;
145
+ color: $brand-black;
146
146
  }
147
147
 
148
148
  &--pending {
149
- border: none;
149
+ border: 1px solid $banana-bread;
150
150
  background: $buttermilk;
151
- color: $flat-brown;
151
+ color: $brand-black;
152
152
  }
153
153
 
154
154
  &--archived {
155
155
  background: $fog;
156
- color: $pickled-bluewood;
156
+ color: $brand-black;
157
157
  border-radius: 3px;
158
158
  border: 1px solid rgba($pewter, 0.30);
159
159
 
@@ -165,27 +165,48 @@ export default class Tag extends Vue {
165
165
  }
166
166
 
167
167
  &--draft {
168
- border: none;
168
+ border: 1px solid $banana-bread;
169
169
  background: $buttermilk;
170
170
  color: $brand-black;
171
+
172
+ &--dark {
173
+ background: rgba($banana-bread, 0.4);
174
+ border-color: rgba($buttermilk, 0.2);
175
+ color: $white;
176
+ }
171
177
  }
172
178
 
173
179
  &--available {
174
180
  border: none;
175
181
  background: $spectral-green;
176
182
  color: $white;
183
+
184
+ &--dark {
185
+ background: $scifi-takeout;
186
+ }
177
187
  }
178
188
 
179
189
  &--closed {
180
190
  border: 1px solid rgba($pewter, 0.3);
181
191
  background: none;
182
192
  color: $brand-black;
193
+
194
+ &--dark {
195
+ border-color: $slate;
196
+ color: $white;
197
+ }
183
198
  }
184
199
 
185
200
  &--upcoming {
186
- border: none;
201
+ border: 1px solid rgba($spectral-green, 0.5);
187
202
  background: rgba($spectral-green, 0.2);
188
203
  color: $brand-black;
204
+
205
+ &--dark {
206
+ border-color: rgba($spectral-green, 0.8);
207
+ background: rgba($spectral-green, 0.5);
208
+ color: $white;
209
+ }
189
210
  }
190
211
  }
191
212
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/ui-kit",
3
- "version": "3.8.3",
3
+ "version": "3.8.5",
4
4
  "description": "Pocket Prep UI Kit",
5
5
  "author": "pocketprep",
6
6
  "scripts": {