Skip to content

Commit

Permalink
Patch - Merge pull request #2292 from Garneauma/WET-436
Browse files Browse the repository at this point in the history
Patch - Provisional feature - GC-Subway update
  • Loading branch information
duboisp authored Dec 12, 2023
2 parents 06466d6 + 9375420 commit 4812c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/gc-subway/gc-subway.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ var $document = wb.doc,
}
} else {
$navH1 = $( "h1", $elm );
$navH1.get( 0 ).id = $navH1.get( 0 ).id || wb.getId();

// Add skip link to sections list
if ( $navH1 ) {
$navH1.id = $navH1.id || wb.getId(); // Ensure the element has an ID
wb.addSkipLink( wb.i18n( "skip-prefix" ) + " " + $navH1.text(), { href: "#" + $navH1.id } );
wb.addSkipLink( wb.i18n( "skip-prefix" ) + " " + $navH1.text(), { href: "#" + $navH1.get( 0 ).id } );
}

// Wrap all content until it hits either: ".pagedetails", or "".gc-subway-support"
Expand Down

0 comments on commit 4812c4f

Please sign in to comment.