Toggle switch with Webflow Tabs

We have a pricing page built using Webflow tabs that alternate between 2 tabs to display different plans. I built this ‘toggle-like’ switch using some design tricks and interactions to make it look like a toggle but the UX isn’t exactly correct. I’d like for the tabs to alternate whenever the toggle button is clicked in any location - currently it will only switch if the user clicks on the white space of the toggle.

I’ve attached an image of the toggle, TIA!