Name property is not defined for the 'Copy' button present in code in Windows.
Q&A (please complete the following information)
- OS: Windows 11 24H2
- Browser: Edge, chrome
- Version: 133.0.3065.82 (Official build) (64-bit)
- Method of installation: dist
- Swagger-UI version: 5.17.14
- Swagger/OpenAPI version: 3.0
Content & configuration
Example Swagger/OpenAPI definition:
# your YAML here
Swagger-UI configuration options:
SwaggerUI({
// your config options here
})
?yourQueryStringConfig
Describe the bug you're encountering
Name property is not defined for the 'Copy' button present in code in Windows. when focus is on the control it is narrating as "button". The lack of a defined name property for the 'Copy' button in code in Windows can greatly affect users who rely on screen readers, such as those with visual impairments. This issue makes it challenging for them to identify the button's function, resulting in confusion and difficulty in using the feature effectively.
To reproduce...
Steps to reproduce the behavior:
- Open the URL: Swagger UI v5.17.14 in the latest edge browser.
- Press tab key to move to the 'Put' drop down control and activated it.
- Press tab key to move to the 'try it out' button and activate it.
- Press tab key to move to the 'execute' button and activate it. 'code' will be displayed.
- Press tab key to move to the 'Copy' button in the code.
- Verify whether name property is defined for the 'Copy' button present in code in Windows.
Expected behavior
Name property should be defined for the 'Copy' button present in code in Windows. When focus is on the control screen reader should announce as "copy button".
Screenshots
https://github.com/user-attachments/assets/0265a6ec-8064-40b6-bb12-68cd1b9537e6
Additional context or thoughts
Hi Team, Any update on this issue?