Skip to content

[IMP] runbot: remove/replace deprecated BS* classes usage - #1490

Open
pparidans wants to merge 9 commits into
19.0from
19.0-frontend-bs-cleanup-app
Open

[IMP] runbot: remove/replace deprecated BS* classes usage#1490
pparidans wants to merge 9 commits into
19.0from
19.0-frontend-bs-cleanup-app

Conversation

@pparidans

@pparidans pparidans commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Cleans up deprecated BS3/BS4 classes.

Note: no visual change should be expected.

@pparidans pparidans self-assigned this Aug 13, 2026
@pparidans pparidans changed the title 19.0 frontend bs cleanup app [FIX] runbot: remove replace deprecated BS* classes usage Aug 13, 2026
@pparidans pparidans changed the title [FIX] runbot: remove replace deprecated BS* classes usage [FIX] runbot: remove/replace deprecated BS* classes usage Aug 13, 2026
@pparidans pparidans changed the title [FIX] runbot: remove/replace deprecated BS* classes usage [IMP] runbot: remove/replace deprecated BS* classes usage Aug 13, 2026
The `.table-condensed` class is a legacy holdover from Bootstrap 3. This
commit swaps it for Bootstrap's standard `.table-sm` class across all
templates and updates the associated custom CSS selectors accordingly.
The `col-xs-*` grid utilities were deprecated in Bootstrap 4 and removed
in Bootstrap 5 (replaced by default `col-*` classes).

This commit removes the obsolete `col-xs-9` and `col-xs-3` classes from
`build_stats.xml`, allowing the default grid and `col-md-*` breakpoints
to handle layout scaling cleanly.
In Bootstrap 5, applying `.table-responsive` directly to `<table>`
elements is invalid without a wrapper `<div>`. Replaced with `d-block
overflow-x-auto` on the affected tables and removed the legacy custom
CSS rule.
The `navbar-default` (Bootstrap 3) and `navbar-light` (deprecated in
Bootstrap 5.3) classes are obsolete. This commit cleans up these legacy
modifier classes.
Remove `.form-inline` (removed in BS5) and cleanup outdated input-group
classes (`md-form`, `form-sm`, `form-2`) from `build.xml` and
`frontend.xml`.
Replace legacy `.pull-right` classes with Bootstrap 5 `.float-end`.

Note that `.pull-right` was previously still functioning only because
FontAwesome 4 includes a `.pull-right` (deprecated) helper class in its
CSS, masking its removal from Bootstrap.
Clean up remaining Bootstrap 3 legacy classes and markup across
templates:

- Remove obsolete `.label` class from commit name spans.
- Remove redundant `<li class="nav-item divider"/>` elements from navbar
  items.
- Remove redundant `<span class="caret"/>` from dropdown toggles, as
  Bootstrap 5 handles caret arrows automatically via standard CSS
  pseudo-elements.
Hardcoded background utility classes like `.bg-white` force a light
background and break dark mode support introduced in Bootstrap 5.3.

Replacing `.bg-white` with `.bg-body` ensures the sticky header
background adapts dynamically to the current color mode theme.
In Bootstrap 5, dropdown menus expect standard HTML list
markup (`ul.dropdown-menu` with `li` item wrappers) and clean
`.dropdown-item` classes without button utility overrides.

This commit:
- Wraps dropdown menu containers in `<ul>` and items in `<li>` across
  templates.
- Removes obsolete `.btn .btn-default` classes from dropdown items.
- Wraps the GitHub dropdown template call in a `.btn-group` container
  for proper dropdown alignment.
@pparidans
pparidans force-pushed the 19.0-frontend-bs-cleanup-app branch from 8501487 to 689006a Compare August 13, 2026 15:30
@pparidans
pparidans marked this pull request as ready for review August 13, 2026 15:34
@C3POdoo
C3POdoo requested a review from a team August 13, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant