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

Disable "spec only" button when it doesn't do anything #1293

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

drewnoakes
Copy link
Member

@drewnoakes drewnoakes commented Dec 8, 2023

The environment variables window has a toggle button that controls whether only "from spec" variables are shown.

This change disables the button in the case that all items are from the spec, in which case toggling it would have no visible effect.

image

image

The environment variables window has a toggle button that controls whether only variables "from spec" are shown or not.

This change hides the button in the case that all items _are_ from the spec, in which case toggling it would have no visible effect.
@adamint
Copy link
Member

adamint commented Dec 8, 2023

I would advocate for disabling the button instead of hiding it completely.

@kvenkatrajan
Copy link
Member

Agreed - from an accessibility perspective disabled is better in this scenario.

@drewnoakes
Copy link
Member Author

Updated to disable rather than hide the button.

@drewnoakes drewnoakes changed the title Hide "spec only" button when it doesn't do anything Disable "spec only" button when it doesn't do anything Dec 10, 2023
@drewnoakes drewnoakes merged commit 356591f into dotnet:main Dec 15, 2023
8 checks passed
@drewnoakes drewnoakes deleted the hide-spec-button-when-not-needed branch December 15, 2023 21:40
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants