Skip to content

Commit 017052e

Browse files
committed
fix(jump-links): landmark label
Closes #2860
1 parent 9637998 commit 017052e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.changeset/grumpy-lemons-like.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
`<pf-jump-links>`: improve screen reader accessibility by labeling the navigation landmark element

elements/pf-jump-links/pf-jump-links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class PfJumpLinks extends LitElement {
121121

122122
render(): TemplateResult<1> {
123123
return html`
124-
<nav id="container">${this.expandable ? html`
124+
<nav id="container" aria-labelledby="label">${this.expandable ? html`
125125
<details ?open="${this.expanded}" @toggle="${this.#onToggle}">
126126
<summary>
127127
<pf-icon icon="chevron-right"></pf-icon>

0 commit comments

Comments
 (0)