diff --git a/src/rest/components/RestCodeSamples.tsx b/src/rest/components/RestCodeSamples.tsx index ede5cc4d152e..16b5a60fc29f 100644 --- a/src/rest/components/RestCodeSamples.tsx +++ b/src/rest/components/RestCodeSamples.tsx @@ -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} > - {displayedExample[selectedLanguage]} + + {displayedExample[selectedLanguage]} + @@ -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} > - + {selectedResponse === ResponseKeys.example ? displayedExampleResponse : displayedExampleSchema}