Skip to content

Commit

Permalink
Merge pull request #34350 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Aug 20, 2024
2 parents 4b1f7d5 + bd47191 commit 401bafb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/rest/components/RestCodeSamples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,14 @@ export function RestCodeSamples({ operation, slug, heading }: Props) {
`border-top rounded-1 my-0 ${getLanguageHighlight(selectedLanguage)}`,
)}
data-highlight={getLanguageHighlight(selectedLanguage)}
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
tabIndex={0}
role="scrollbar"
aria-controls="example-request-code"
aria-valuenow={0}
>
<code ref={requestCodeExample}>{displayedExample[selectedLanguage]}</code>
<code id="example-request-code" ref={requestCodeExample}>
{displayedExample[selectedLanguage]}
</code>
</div>
</div>

Expand Down Expand Up @@ -369,10 +373,12 @@ export function RestCodeSamples({ operation, slug, heading }: Props) {
)}
data-highlight={'json'}
style={{ maxHeight: responseMaxHeight }}
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
tabIndex={0}
role="scrollbar"
aria-controls="example-response-code"
aria-valuenow={0}
>
<code ref={responseCodeExample}>
<code id="example-response-code" ref={responseCodeExample}>
{selectedResponse === ResponseKeys.example
? displayedExampleResponse
: displayedExampleSchema}
Expand Down

0 comments on commit 401bafb

Please sign in to comment.