Forcing accessibility through CSS

By styling the aria and role attributes directly and tying them to the JavaScript functionality you can enforce accessibility. This also reduces the need for custom class names and simplifies the JS.

Tab 1a Tab 1b Tab 1c

Panel 1a

Lorem ipsum dolor sit amet.

Tab 2a Tab 2b Tab 2c

Panel 2a

Lorem ipsum dolor sit amet.

Full credit to @_r_dhaliwal who helped spawn this idea