From 076037a34968ac83379ae7a793019bf2ac11da9e Mon Sep 17 00:00:00 2001 From: Audrey Hamelers Date: Tue, 14 Jul 2026 21:17:04 +0200 Subject: [PATCH] aria headings, labels, and announcements --- src/components/api-request.js | 35 ++++++++++++----------- src/components/api-response.js | 4 +-- src/components/request-form-table.js | 2 +- src/components/schema-tree.js | 4 +-- src/components/syntax-highlighter.js | 9 ++++-- src/templates/security-scheme-template.js | 16 +++++------ src/templates/server-template.js | 4 +-- 7 files changed, 40 insertions(+), 34 deletions(-) diff --git a/src/components/api-request.js b/src/components/api-request.js index 33675a84..894d3dd8 100644 --- a/src/components/api-request.js +++ b/src/components/api-request.js @@ -302,7 +302,7 @@ export default class ApiRequest extends LitElement { } return html` -
${title}${paramLocation === 'path' ? html`*` : ''}
+
${title}${paramLocation === 'path' ? html`*` : ''}
${tableRows} @@ -627,18 +627,21 @@ export default class ApiRequest extends LitElement { ${!hasResponse ? '' : html``}
-
-
-
- - ${!hasResponse ? '' : html` - - ` - } -
+ ${hasResponse + ? html` +
+ + + +
` + : html` +
+
${getI18nText('operations.request')}
+
` + }
${this.responseIsBlob ? html` @@ -659,14 +662,14 @@ export default class ApiRequest extends LitElement {
` : html`
- +
` }
- +
- +
`; } diff --git a/src/components/api-response.js b/src/components/api-response.js index 6b30e6fe..aa42c992 100644 --- a/src/components/api-response.js +++ b/src/components/api-response.js @@ -275,7 +275,7 @@ export default class ApiResponse extends LitElement { ? html` ${mimeRespDetails.examples[0].exampleSummary && mimeRespDetails.examples[0].exampleSummary.length > 80 ? html`
${mimeRespDetails.examples[0].exampleSummary}
` : ''} ${mimeRespDetails.examples[0].exampleDescription ? html`
${unsafeHTML(toMarkdown(mimeRespDetails.examples[0].exampleDescription || ''))}
` : ''} - ` + ` : html` `; @@ -407,7 +407,7 @@ export default function securitySchemeTemplate() {
${getI18nText('headers.authentication')}
-
+
${providedApiKeys.length > 0 ? html`
${providedApiKeys.length} API key applied
@@ -498,20 +498,20 @@ export function pathSecurityTemplate(pathSecurityOptions) { securityDefs: andSecurityKeys1, }); }); - return html`
+ return html`
- + ${orSecurityKeys1.map((orSecurityItem1, i) => html` ${i !== 0 ? html`
OR
` : ''} -
+
${orSecurityItem1.securityTypes}
-
+