Skip to content

Commit

Permalink
fix(ui): help preview tabindex, auto focus and buttons (#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Feb 24, 2024
1 parent eddbb1e commit efb6967
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/help/HelpPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
const emit = defineEmits<{
(event: 'close'): void
}>()
const vAutoFocus = (el: HTMLElement) => el.focus()
</script>

<template>
<div my-8 px-3 sm:px-8 md:max-w-200 flex="~ col gap-4" relative>
<button btn-action-icon absolute top--8 right-0 m1 aria-label="Close" @click="emit('close')">
<div i-ri:close-line />
<button v-auto-focus type="button" btn-action-icon absolute top--8 right-0 m1 aria-label="Close" @click="emit('close')">
<span i-ri:close-line />
</button>

<img :alt="$t('app_logo')" :src="`/${''}logo.svg`" w-20 h-20 height="80" width="80" mxa class="rtl-flip">
Expand Down Expand Up @@ -42,7 +44,7 @@ const emit = defineEmits<{
</NuxtLink>
</p>

<button btn-solid mxa tabindex="2" @click="emit('close')">
<button type="button" btn-solid mxa @click="emit('close')">
{{ $t('action.enter_app') }}
</button>
</div>
Expand Down

0 comments on commit efb6967

Please sign in to comment.