swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Name property is not defined for the 'Copy' button present in code in Windows.

Open msftedad opened this issue 10 months ago • 1 comments

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:

  1. Open the URL: Swagger UI v5.17.14 in the latest edge browser.
  2. Press tab key to move to the 'Put' drop down control and activated it.
  3. Press tab key to move to the 'try it out' button and activate it.
  4. Press tab key to move to the 'execute' button and activate it. 'code' will be displayed.
  5. Press tab key to move to the 'Copy' button in the code.
  6. 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 Image

Additional context or thoughts

msftedad avatar Feb 26 '25 06:02 msftedad

Hi Team, Any update on this issue?

msftedad avatar Nov 12 '25 11:11 msftedad