Shared runners toggle can be accidentally activated
Summary
The enable/disable shared runners toggle can be toggled by clicking anywhere in the relevant section for the toggle. For example, clicking to the right of the toggle will activate it.
This normally wouldn't be a huge deal, but since shared runners are not automatically re-enabled for subgroups or projects, accidentally clicking this means an Owner/Maintainer must explicitly go through and enable shared runners for each subgroup and project.
The toggle should be limited to the button itself, and we might consider adding a confirmation pop-up to be doubly sure this isn't accidentally activated.
Steps to reproduce
-
Open an testing group of your choosing
-
Go to Settings >> CI/CD >> Runners
-
Click near the toggle (but not on it) and it will activated
What is the current bug behavior?
The enable shared runners toggle can be activated without clicking on the toggle itself.
What is the expected correct behavior?
The enable shared runners toggle is only activated when the toggle itself is clicked.