Apart from that, Due to API based approach taken in rendering toggle, so I can still reproduce the issue raised in https://redmine.postgresql.org/issues/3568 which is linked to RM#3051, I have had updated the RM with my finding on the weekend, I think we need to use HTML based approach for rendering the toggle when not in edit mode.
1) Do we need to add "editor" class to switch control in backgrid when changing. For eg. in tables->columns if I change not null switch, it adds editor class which makes hover background white. Plus, leaving the switch does not remove editor class. I think we can skip adding editor, what do you think?
2) In Login roles, Create trigger dialogs switch control colors are different. Below is screenshot,
3) In Create cast dialog switch control is smaller and so clipping text. Below is screenshot,
4) You've removed unnecessary switch control template codes at most places. I would suggest doing the same for Backform.CustomSwitchControl in trigger.js
5) Feature tests are still using bootstrap-switch classes and so failing.