fix(a11y): the channel member count button's name includes the number it shows (#33127)

This commit is contained in:
G30 2026-10-24 23:16:46 -04:00 • committed by GitHub
parent 62084e1eb4
commit 90985382fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,7 +179,6 @@
<Tooltip content={$i18n.t('Users')}>
<button
class=" flex h-7 items-center cursor-pointer shrink-0 px-1.5 rounded-lg text-gray-500 dark:text-gray-400 hover:bg-gray-50/60 dark:hover:bg-gray-800/60 transition-colors"
aria-label={$i18n.t('User Count')}
type="button"
on:click={() => {
showChannelInfoModal = true;
@ -188,6 +187,7 @@
<div class=" flex items-center gap-1 m-auto self-center shrink-0">
<UserAlt className=" size-4" strokeWidth="1.5" />
<span class="sr-only">{$i18n.t('User Count')}</span>
<div class="text-xs tabular-nums shrink-0">
{channel.user_count}
</div>