Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
msftedad opened this issue Feb 26, 2025 · 0 comments

Comments

@msftedad
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant