Skip to content

Commit 17af2f3

Browse files
committed
Improve aria labels on expand/collapse buttons further
1 parent 92b44c2 commit 17af2f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/view/http/header-details.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export const HeaderDetails = inject('accountStore')(observer((props: {
231231
)
232232

233233
return <CollapsibleSection
234-
contentName='header details'
234+
contentName={`${key} header details`}
235235
withinGrid={true}
236236
key={`${key}-${i}`}
237237
>
@@ -254,7 +254,7 @@ const PseudoHeaderDetails = observer((props: {
254254
return <HeadersGrid>
255255
{ _.flatMap(props.headers, ([key, value], i) => {
256256
return <CollapsibleSection
257-
contentName='header details'
257+
contentName={`${key} header details`}
258258
withinGrid={true}
259259
key={`${key}-${i}`}>
260260
<HeaderKeyValue headerKey={key} headerValue={value} />

src/components/view/http/http-request-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const RawRequestDetails = (p: {
104104
].filter(d => !!d);
105105

106106
return <div>
107-
<CollapsibleSection contentName='method details'>
107+
<CollapsibleSection contentName={`${p.request.method} method documentation`}>
108108
<CollapsibleSectionSummary>
109109
<ContentLabel>Method:</ContentLabel> { p.request.method }
110110
</CollapsibleSectionSummary>

0 commit comments

Comments
 (0)