fix: the search window's content type button tells screen readers what's selected (#32632)

This commit is contained in:
G30 2026-10-20 13:58:57 -04:00 • committed by GitHub
parent a06fed0ad8
commit 2e2d330d9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -248,7 +248,7 @@
>{/if}
<button
class={quietButton}
aria-label={$i18n.t('Content type')}
aria-label={`${$i18n.t('Content type')}: ${$i18n.t(kind === 'all' ? 'Everything' : labels[kind])}`}
data-search-panel
aria-expanded={panel === 'types'}
on:click={() => (panel = panel === 'types' ? null : 'types')}