Since https://github.com/twbs/bootstrap/commit/135b9cdff2bb301e36faa9110043d5823f620b56, disabled tabs with tab JavaScript plugin don't seem to be handled anymore: they can be focused with the keyboard when disabled. I've read the discussion in https://github.com/twbs/bootstrap/pull/33079 but I was unsure of the current state.
This PR tries to reintegrate this behavior (heavily draft atm) or at least shows the issue.
Note: with this current code, it doesn't work if the first tab is disabled and there are some issues when they are active + disabled.
If we use this PR to fix this use case
-
Add tests -
Handle active + disabled -
First tab is disabled -
Only disabled tabs
Live preview
/cc @GeoSot