We are using a tool called Sort Site to evaluate our site for 508 accessibility compliance. It is flagging for the "copy to clipboard" element that "This "button" element is empty and has no accessible name. A programmatically determined name allows screen readers to tell users what the control does."
Violates WCAG 2.0 A 4.1.2 https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html
This error is on the button (with no class) which is contained in the div with class "copy-to-clipboard"
To reproduce...
Open the pane for a method such as POST. Click Try It Out. Click Execute. Scroll down to see the Curl command - there is a small Copy to Clipboard icon in the bottom right corner.
Q&A (please complete the following information)
Content & configuration
Basic/ default
Describe the bug you're encountering
We are using a tool called Sort Site to evaluate our site for 508 accessibility compliance. It is flagging for the "copy to clipboard" element that "This "button" element is empty and has no accessible name. A programmatically determined name allows screen readers to tell users what the control does." Violates WCAG 2.0 A 4.1.2 https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html This error is on the button (with no class) which is contained in the div with class "copy-to-clipboard"
To reproduce...
Open the pane for a method such as POST. Click Try It Out. Click Execute. Scroll down to see the Curl command - there is a small Copy to Clipboard icon in the bottom right corner.
Expected behavior
The button should identify itself
Screenshots
Here's the area on the screen
Here's the Sort Site error detail:
Additional context or thoughts