Skip to content

Commit cb7cb29

Browse files
committed
fix(jump-links): add aria-label to nav landmark
Closes #2860 Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1377f14 commit cb7cb29

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/fix-jump-links-nav.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@patternfly/elements": patch
3+
---
4+
5+
`pf-jump-links`: the shadow root `<nav>` element now has a default
6+
`aria-label` of "Page section navigation". Set the `label` attribute
7+
to customize it.

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

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

8585
render(): TemplateResult<1> {
8686
return html`
87-
<nav id="container">${this.expandable ? html`
87+
<nav id="container" aria-label="${this.label || 'Page section navigation'}">${this.expandable ? html`
8888
<details ?open="${this.expanded}" @toggle="${this.#onToggle}">
8989
<summary>
9090
<pf-icon icon="chevron-right"></pf-icon>

0 commit comments

Comments
 (0)