File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ <h2 class="nhsuk-heading-m">Example showing server down (503)</h2>
6969 button . disabled = true
7070 button . classList . add ( 'app-button--loading' )
7171 button . textContent = 'Saving'
72- button . setAttribute ( 'aria-live' , 'assertive ' )
72+ button . setAttribute ( 'aria-live' , 'polite ' )
7373 button . setAttribute ( 'aria-label' , 'Saving' )
7474
7575 let errorMessageElement = button . parentElement . querySelector ( '.app-body--error' )
@@ -86,7 +86,7 @@ <h2 class="nhsuk-heading-m">Example showing server down (503)</h2>
8686 this . classList . remove ( 'app-button--loading' )
8787 this . removeAttribute ( 'aria-live' )
8888 this . removeAttribute ( 'aria-label' )
89- this . insertAdjacentHTML ( "beforebegin" , '<p class="app-body--error" aria-live="polite ">' + errorMessage + '</p>' )
89+ this . insertAdjacentHTML ( "beforebegin" , '<p class="app-body--error" aria-live="assertive ">' + errorMessage + '</p>' )
9090 } . bind ( event . target ) , randomTimeOut )
9191
9292 }
You can’t perform that action at this time.
0 commit comments