aria-role fixes

This commit is contained in:
kwaroran
2024-12-02 04:27:50 +09:00
parent 8f72b9e6e2
commit 0e292bd690
20 changed files with 99 additions and 42 deletions

View File

@@ -37,13 +37,15 @@
<span>{chat.name}</span>
{/if}
<div class="flex-grow flex justify-end">
<div class="text-textcolor2 hover:text-green-500 mr-2 cursor-pointer" onclick={async (e) => {
<div class="text-textcolor2 hover:text-green-500 mr-2 cursor-pointer" role="button" tabindex="0" onclick={async (e) => {
e.stopPropagation()
exportChat(i)
}} onkeydown={() => {
}}>
<DownloadIcon size={18}/>
</div>
<div class="text-textcolor2 hover:text-green-500 cursor-pointer" onclick={async (e) => {
<div class="text-textcolor2 hover:text-green-500 cursor-pointer" role="button" tabindex="0" onclick={async (e) => {
e.stopPropagation()
if(DBState.db.characters[$selectedCharID].chats.length === 1){
alertError(language.errors.onlyOneChat)
@@ -56,6 +58,8 @@
chats.splice(i, 1)
DBState.db.characters[$selectedCharID].chats = chats
}
}} onkeydown={() => {
}}>
<TrashIcon size={18}/>
</div>