Skip to content

Commit

Permalink
Improve aria labels on expand/collapse buttons further
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Dec 31, 2024
1 parent 92b44c2 commit 17af2f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/view/http/header-details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const HeaderDetails = inject('accountStore')(observer((props: {
)

return <CollapsibleSection
contentName='header details'
contentName={`${key} header details`}
withinGrid={true}
key={`${key}-${i}`}
>
Expand All @@ -254,7 +254,7 @@ const PseudoHeaderDetails = observer((props: {
return <HeadersGrid>
{ _.flatMap(props.headers, ([key, value], i) => {
return <CollapsibleSection
contentName='header details'
contentName={`${key} header details`}
withinGrid={true}
key={`${key}-${i}`}>
<HeaderKeyValue headerKey={key} headerValue={value} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/view/http/http-request-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const RawRequestDetails = (p: {
].filter(d => !!d);

return <div>
<CollapsibleSection contentName='method details'>
<CollapsibleSection contentName={`${p.request.method} method documentation`}>
<CollapsibleSectionSummary>
<ContentLabel>Method:</ContentLabel> { p.request.method }
</CollapsibleSectionSummary>
Expand Down

0 comments on commit 17af2f3

Please sign in to comment.