File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ const showModal = () => modalRef.value?.showModal?.()
1111const closeModal = () => modalRef .value ?.close ?.()
1212
1313type FooterLink =
14- | { name: string ; href: string ; kbd ? : never ; type? : never }
15- | { name: string ; type: ' button' ; href ? : never ; kbd ? : never }
14+ | { name: string ; href: string ; type? : never }
15+ | { name: string ; type: ' button' ; onClick : () => void }
1616
1717const socialLinks = computed (() => [
1818 {
@@ -71,6 +71,7 @@ const footerSections: Array<{ label: string; links: FooterLink[] }> = [
7171 {
7272 name: ' footer.keyboard_shortcuts' ,
7373 type: ' button' ,
74+ onClick: showModal ,
7475 },
7576 ],
7677 },
@@ -129,8 +130,9 @@ const footerSections: Array<{ label: string; links: FooterLink[] }> = [
129130 <button
130131 v-if =" link.type === 'button'"
131132 type =" button"
133+ aria-haspopup =" dialog"
134+ @click =" link.onClick"
132135 class =" cursor-pointer text-start font-mono text-fg-subtle text-sm lowercase hover:text-accent transition-colors duration-200"
133- @click.prevent =" showModal"
134136 >
135137 {{ $t(link.name) }}
136138 </button >
You can’t perform that action at this time.
0 commit comments