File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ const flashes = (function () {
27
27
}
28
28
29
29
html += '<div class="l-box note note--' + type + '" role="' + ( type === 'error' ? 'alert' : 'status' )
30
- + '" aria-labelledby="' + type + '-summary-title" tabindex="-1" data-component = "' + type + '-summary" >' ;
30
+ + '" aria-labelledby="' + type + '-summary-title" tabindex="-1" ' +
31
+ 'data-component = "' + type + '-summary" data-anchor="no">' ;
31
32
html += '<h2 id="' + type + '-summary-title" class="txt-saturn">' + flashes [ 'title-' + type ] + '</h2>' ;
32
33
html += '<ul class="clean-list" role="list">' ;
33
34
for ( let i in flashes [ type ] ) {
Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ const flashes = function () {
887
887
if ( type . startsWith ( 'title-' ) || type === 'length' || ! flashes . hasOwnProperty ( type ) ) {
888
888
continue ;
889
889
}
890
- html += '<div class="l-box note note--' + type + '" role="' + ( type === 'error' ? 'alert' : 'status' ) + '" aria-labelledby="' + type + '-summary-title" tabindex="-1" data-component = "' + type + '-summary" >' ;
890
+ html += '<div class="l-box note note--' + type + '" role="' + ( type === 'error' ? 'alert' : 'status' ) + '" aria-labelledby="' + type + '-summary-title" tabindex="-1" ' + ' data-component = "' + type + '-summary" data-anchor="no" >' ;
891
891
html += '<h2 id="' + type + '-summary-title" class="txt-saturn">' + flashes [ 'title-' + type ] + '</h2>' ;
892
892
html += '<ul class="clean-list" role="list">' ;
893
893
for ( let i in flashes [ type ] ) {
@@ -977,7 +977,6 @@ let headingAnchors = function () {
977
977
anchor . setAttribute ( 'href' , '#' + anchorHref ) ;
978
978
anchor . setAttribute ( 'class' , 'heading-anchor' ) ;
979
979
anchor . innerHTML = '<span aria-hidden="true">§</span>' + '<span class="visuallyhidden">' + _translations__WEBPACK_IMPORTED_MODULE_0__ . translate . translate ( 'anchor' , languageCode ) + '</span>' ;
980
- console . log ( heading . textContent ) ;
981
980
heading . append ( '\xa0' ) ;
982
981
heading . appendChild ( anchor ) ;
983
982
} ) ;
You can’t perform that action at this time.
0 commit comments