swarm-ui: give a header tab's close button an accessible name
This commit is contained in:
parent
16c9e0ae3b
commit
e81aaef7e3
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue