You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When the request or response sample text overflows the width of the container, a horizontal scrollbar appears.
If the request/response does not contains a "focusable" element, then the user can't use the left and right arrow keys to view the rest of the code in that section.
Expected behavior
If the request/response sections present a scrollbar, they should be keyboard accessible.
Resize browser window to a small width, so that the "Request samples" of the method shows a horizontal scrollbar.
Try tabbing to get to the "Request samples" and use right/left arrow keys to focus. It is not possible.
Screenshots
Additional context
For this bug, the request/response text does not need to have any focusable elements (like JSON expand/collapse buttons). The method referred in "how to reproduce" is an example that should display the bug.
Solution
Add tabindex="0" to the element that has the scrollbar.
The text was updated successfully, but these errors were encountered:
Describe the bug
When the request or response sample text overflows the width of the container, a horizontal scrollbar appears.
If the request/response does not contains a "focusable" element, then the user can't use the left and right arrow keys to view the rest of the code in that section.
Expected behavior
If the request/response sections present a scrollbar, they should be keyboard accessible.
How to reproduce
POST Buy museum tickets
method: https://redocly.github.io/redoc/#tag/Tickets/operation/buyMuseumTicketsScreenshots
Additional context
For this bug, the request/response text does not need to have any focusable elements (like JSON expand/collapse buttons). The method referred in "how to reproduce" is an example that should display the bug.
Solution
Add
tabindex="0"
to the element that has the scrollbar.The text was updated successfully, but these errors were encountered: