@@ -332,7 +332,7 @@ function renderSecurityScheme(v) {
332332 : html `Sends the < code > Authorization header</ code > containing the token type < code style ="text-transform: capitalize; "> ${ v . scheme || 'bearer' } </ code > followed by the < code > ${ v . bearerFormat ?? 'Token' } </ code > string.`
333333 }
334334 </ div >
335- < form style ="height: 50px; margin-top: 1rem; padding: 10px 0; margin-bottom: 10px; ">
335+ < form style ="height: 50px; margin-top: 1rem; padding: 10px 0; margin-bottom: 10px; " aria-live =" polite " >
336336 ${ v . in === 'cookie'
337337 ? html `
338338 < div style ="display: block ">
@@ -343,7 +343,7 @@ function renderSecurityScheme(v) {
343343 </ small >
344344 </ div > `
345345 : ! v . finalKeyValue ? html `
346- < input autocomplete ="on " name ="api-key " type ="text " value ="${ v . value } " placeholder ="${ v . bearerFormat ?? 'api- token' } "
346+ < input autocomplete ="on " name ="api-key " type ="text " value ="${ v . value } " aria-label ="${ v . bearerFormat ?? 'API token' } "
347347 spellcheck ="false " class ="api-key-input fs-exclude ph-no-capture " data-hj-suppress data-sl ="mask ">
348348 < button type ="submit " class ="m-btn thin-border " style = "margin-left:5px; "
349349 part = "btn btn-outline "
@@ -363,7 +363,7 @@ function renderSecurityScheme(v) {
363363 code { font-weight : bold; }
364364 </ style >
365365 < div style ="padding-top: 1rem "> ${ unsafeHTML ( getI18nText ( 'authentication.http-basic-desc' ) ) } </ div >
366- < div style ="height: 50px; margin-top: 1rem; padding: 10px 0; margin-bottom: 10px; ">
366+ < div style ="height: 50px; margin-top: 1rem; padding: 10px 0; margin-bottom: 10px; " aria-role =" status " >
367367 < span class ="blue-text " style ="margin-right: 1rem "> Key Applied</ span >
368368 < button class ="m-btn thin-border small " part ="btn btn-outline " @click =${ ( ) => { v . finalKeyValue = '' ; this . requestUpdate ( ) ; } } > ${ getI18nText ( 'authentication.remove' ) } </ button >
369369 </ div > ` ;
@@ -407,7 +407,7 @@ export default function securitySchemeTemplate() {
407407 < slot name ="authentication-header ">
408408 < div class ="sub-title regular-font " role ="heading " aria-level ="2 "> ${ getI18nText ( 'headers.authentication' ) } </ div >
409409 </ slot >
410- < div class ="small-font-size " style ="display:flex; align-items: center; min-height:40px ">
410+ < div class ="small-font-size " style ="display:flex; align-items: center; min-height:40px " aria-role =" status " >
411411 ${ providedApiKeys . length > 0
412412 ? html `
413413 < div class ="blue-text "> ${ providedApiKeys . length } API key applied </ div >
@@ -498,20 +498,20 @@ export function pathSecurityTemplate(pathSecurityOptions) {
498498 securityDefs : andSecurityKeys1 ,
499499 } ) ;
500500 } ) ;
501- return html `< div class ="security-info-button " data-content-id =' auth ' @click =' ${ ( e ) => this . scrollToEventTarget ( e , false ) } ' >
501+ return html `< div class ="security-info-button ">
502502 < div style ="position:relative; display:flex; min-width:350px; max-width:700px; justify-content: flex-end; ">
503- < svg width ="16 " height ="24 " style ="cursor: pointer; ">
503+ < svg width ="16 " height ="24 " style ="cursor: pointer; " role =" img " aria-label =" Security " >
504504 < g >
505505 < path style ="fill: var(--fg3) " d ="m13.8,8.5l0,-2.6l0,0c0,-3.2 -2.6,-5.8 -5.8,-5.8s-5.8,2.6 -5.8,5.8l0,0l0,2.6l-2.1,0l0,11.2l16,0l0,-11.2l-2.1,0l-0,0l0,0l0,0l-0,0zm-9.8,-2.6c0,0 0,0 0,0c0,-2.2 1.8,-4 4,-4c2.2,0 4,1.8 4,4c0,0 0,0 0,0l0,2.6l-8.03,0l0,-2.6l0,0l0,0z " />
506506 </ g >
507507 </ svg >
508508 ${ orSecurityKeys1 . map ( ( orSecurityItem1 , i ) => html `
509509 ${ i !== 0 ? html `< div style ="padding:3px 4px; "> OR </ div > ` : '' }
510- < div class ="security-tooltip tooltip " style ="cursor: pointer; ">
510+ < div class ="security-tooltip tooltip " style ="cursor: pointer; " aria-describedby =" tooltip-security-info " data-content-id =" auth " role =" link " tabindex =" 0 " @click =' ${ ( e ) => this . scrollToEventTarget ( e , false ) } ' @keydown =" ${ ( e ) => { if ( e . key === 'Enter' ) { e . target . click ( ) ; } } } " >
511511 < div style ="padding:2px 4px; white-space:nowrap; text-overflow:ellipsis;max-width:150px; overflow:hidden; ">
512512 < span part ="anchor anchor-operation-security "> ${ orSecurityItem1 . securityTypes } </ span >
513513 </ div >
514- < div class ="tooltip-text " style ="position:absolute; color: var(--fg); top:26px; right:0; border:1px solid var(--border-color);padding:2px 4px; display:block; ">
514+ < div class ="tooltip-text " id =" tooltip-security-info " role =" tooltip " style ="position:absolute; color: var(--fg); top:26px; right:0; border:1px solid var(--border-color);padding:2px 4px; display:block; ">
515515 ${ orSecurityItem1 . securityDefs . length > 1 ? html `< div > Requires < b > all</ b > of the following </ div > ` : '' }
516516 < div style ="padding-left: 8px ">
517517 ${ orSecurityItem1 . securityDefs . map ( ( andSecurityItem , j ) => html `
0 commit comments