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

Hide parameter inputs in non-"Try it out" mode. #9738

Open
wingsofovnia opened this issue Mar 24, 2024 · 0 comments
Open

Hide parameter inputs in non-"Try it out" mode. #9738

wingsofovnia opened this issue Mar 24, 2024 · 0 comments

Comments

@wingsofovnia
Copy link

wingsofovnia commented Mar 24, 2024

I routinely work with Swagger UI to test endpoints and every single time I forget to click "Try it out" button to enable parameter inputs to send a request and hit disabled inputs (or it is just me 😄?). My theory is that enabled and disabled inputs in Swagger UI are not contrast enough (at least in Safari) and subconsciously fools the user/me.

That said, I suggest to hide inputs rather than disable them when not in a "Try it out" mode. This makes even more sense when UI is only used in "read-only mode" when "Try it out" button is disabled: inputs are not desired there at all.

Now

Display mode "Try it out" enabled
Знімок екрана 2024-03-24 о 10 37 18 Знімок екрана 2024-03-24 о 10 37 44

Suggested

Display mode "Try it out" enabled
Знімок екрана 2024-03-24 о 10 38 06 Знімок екрана 2024-03-24 о 10 37 44
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