mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:01:09 +02:00
A11y
This commit is contained in:
parent
a47a7bfdba
commit
82f58e44fa
5 changed files with 7 additions and 6 deletions
|
|
@ -112,9 +112,9 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
||||
<div
|
||||
onclick={isAvailable ? handleClick : undefined}
|
||||
onkeydown={(e) => e.key === 'Enter' && isAvailable && handleClick()}
|
||||
role="button"
|
||||
tabindex={isAvailable ? 0 : -1}
|
||||
aria-disabled={!isAvailable}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue