File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed
Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 2323</template >
2424
2525<script setup lang="ts">
26- import { defineAsyncComponent } from ' vue'
2726import Header from ' ./components/Header.vue'
2827import Footer from ' ./components/Footer.vue'
2928import InfoBanner from ' ./components/InfoBanner.vue'
3029import ApiConfiguration from ' ./components/ApiConfiguration.vue'
3130import SearchContent from ' ./components/Features/SearchContent.vue'
3231import ComingSoon from ' ./components/ComingSoon.vue'
33-
34- const WhatsNew = defineAsyncComponent (() => import (' ./components/WhatsNew.vue' ))
32+ import WhatsNew from ' ./components/WhatsNew.vue'
3533 </script >
3634
3735<style lang="scss" scoped>
Original file line number Diff line number Diff line change 66 aria-modal =" true"
77 :aria-labelledby =" `${id}-heading`"
88 :aria-describedby =" `${id}-description`"
9+ tabindex =" -1"
910 @cancel =" emit('close')"
1011 @click =" handleBackdropClick"
1112 >
@@ -97,11 +98,8 @@ watch(
9798 modal .value .showModal ()
9899 document .body .style .overflow = ' hidden'
99100
100- // Focus the first focusable element
101- const focusableElements = getFocusableElements ()
102- if (focusableElements .length > 0 ) {
103- focusableElements [0 ]?.focus ()
104- }
101+ // Focus the dialog element itself for screen reader announcement
102+ modal .value .focus ()
105103
106104 // Add keydown listener for focus trap
107105 modal .value .addEventListener (' keydown' , handleKeyDown )
Original file line number Diff line number Diff line change 2525</template >
2626
2727<script setup lang="ts">
28- import { ref , onMounted , defineAsyncComponent } from ' vue'
28+ import { ref , onMounted } from ' vue'
2929import InfoBanner from ' ./InfoBanner.vue'
30-
31- const Modal = defineAsyncComponent (() => import (' ./Modal.vue' ))
30+ import Modal from ' ./Modal.vue'
3231
3332interface Feature {
3433 id: string
@@ -156,6 +155,7 @@ onMounted(() => {
156155
157156 if (newFeatures .value .length > 0 ) {
158157 showModal .value = true
158+ console .log (' New features since last visit:' , newFeatures .value )
159159 }
160160
161161 updateLastVisitDate ()
You can’t perform that action at this time.
0 commit comments