Remove Bootstrap version 3 (#27420)

* Remove bootstrap-3 entrypoint

* Rename bootstrap-5 entrypoint to bootstrap

* Restore entrypoints

* Remove `bootstrap-5` and `bootstrap-3` entrypoints and a single `bootstrap.ts` file is now the default entrypoint

* Update `bootstrap-5` component imports to `bootstrap`

* Update `bootstrap-5` CSS imports to `bootstrap`

* Remove the `isBootstrap5` utility

* Remove `bootstrapVersion`

* Remove `ol-bootstrapVersion`

* Remove getCssThemeModifier

* Update path and rename

* Source format

* Remove Bootstrap v3 and Bootstrap v5 alias npm packages

* Remove bootstrap argument

* Remove unused files

* Update with the latest split tests

* Remove remaining bootstrap5PageStatus

* Update path

GitOrigin-RevId: 7acda2f80114d2de8699e1f06729a2a29218e284
This commit is contained in:
Rebeka Dekany
2025-08-08 08:06:00 +00:00
committed by Copybot
parent 70e0ca3eb5
commit c9a1ecd060
26 changed files with 68 additions and 216 deletions
@@ -1,7 +1,5 @@
import { isBootstrap5 } from './bootstrap-5'
export function disableElement(el) {
if (isBootstrap5() && el.tagName.toLowerCase() === 'a') {
if (el.tagName.toLowerCase() === 'a') {
el.classList.add('disabled')
} else {
el.disabled = true
@@ -10,7 +8,7 @@ export function disableElement(el) {
}
export function enableElement(el) {
if (isBootstrap5() && el.tagName.toLowerCase() === 'a') {
if (el.tagName.toLowerCase() === 'a') {
el.classList.remove('disabled')
} else {
el.disabled = false