Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: give a header tab's close button an accessible name

This commit is contained in:
iris 2026-10-21 21:14:59 +02:00 • committed by mara
commit e81aaef7e3

View file

@ -164,6 +164,7 @@ function DynamicTabLink({
type="button" type="button"
class="shell-tab-close" class="shell-tab-close"
title={`close ${label}`} title={`close ${label}`}
aria-label={`close ${label}`}
onClick={(e) => { onClick={(e) => {
// Not a navigation — stop it reaching `Link`'s own click // Not a navigation — stop it reaching `Link`'s own click
// handling even though this button sits outside the anchor, // handling even though this button sits outside the anchor,