Skip to content

Commit

Permalink
aria-label属性を追加(フォーマットはDiscordに合わせた)
Browse files Browse the repository at this point in the history
  • Loading branch information
UnABC authored and UnABC committed Jan 5, 2025
1 parent 0101b00 commit ec87df5
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/components/Main/MainView/MessageElement/StampElement.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
<template>
<!-- <div
:class="$style.body"
:title="tooltip"
:data-include-me="$boolAttr(includeMe)"
@click="onClick"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
> -->
<div
:class="$style.body"
:aria-label="`${tooltip}`"
:data-include-me="$boolAttr(includeMe)"
@click="onClick"
@mouseenter="onMouseEnter"
Expand Down Expand Up @@ -58,14 +51,11 @@ const stampName = computed(
() => stampsMap.value.get(props.stamp.id)?.name ?? ''
)
// const tooltip = computed(() =>
// [
// `:${stampName.value}:`,
// ...props.stamp.users.map(
// u => `${usersMap.value.get(u.id)?.displayName ?? ''}(${u.count})`
// )
// ].join(' ')
// )
const tooltip = computed(() =>
[
`${stampName.value}, ${props.stamp.sum}件のリアクション, クリック/タップでリアクションを削除`
].join(' ')
)
const includeMe = computed(() => props.stamp.myCount > 0)
Expand Down

0 comments on commit ec87df5

Please sign in to comment.