GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature/upgrade bootstrap to version 5.3.8 by KenTandrian · Pull Request #8131 · ghostfolio/ghostfolio

Conversation

@KenTandrian

@KenTandrian KenTandrian commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Hi @dtslvr, this PR is related to #6967. Please take a look :)

This PR upgrades Bootstrap 4.6.2 to 5.3.8. It implements a Sass compatibility layer via Bootstrap 5's $utilities API to preserve legacy utility classes without @extend overhead, converts non-grid .row usages to .d-flex, and migrates remaining CSS color variables to --bs-*.

Changes

  • Dependency upgrade (package.json, package-lock.json):

    • Upgraded bootstrap to 5.3.8.
  • Bootstrap SCSS configuration & compatibility shim (bootstrap.scss):

    • Updated module import stack to BS5.
    • Added legacy utility mappings (mr-*, ml-*, pr-*, pl-*, text-left, text-right, font-weight-bold, font-italic) via Bootstrap's $utilities API.
    • Retained compatibility rules for .no-gutters, .badge-pill, and badge colors.
    • Restored Bootstrap 4 link decoration defaults ($link-decoration: none; $link-hover-decoration: underline;).
    • Locked container max-width to 1140px for screens ≥ 1400px.
  • Theme & dark mode integration (app.component.ts):

    • Set data-bs-theme="dark" / data-bs-theme="light" on document.documentElement when toggling themes.
  • Non-grid .row cleanup (portfolio-summary.component.html, portfolio-performance.component.html, rule.component.html):

    • Replaced .row with .d-flex where rows were used as flex containers with flex-grow-1 children, preventing BS5's .row > * 100% width rule from wrapping elements.
  • Legacy CSS variables migration (rule.component.scss, x-ray-page.component.scss, activity-type.component.scss, historical-market-data-editor.component.scss):

    • Migrated legacy variables (--green, --blue, --success, --danger, etc.) to native --bs-* tokens.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
KenTandrian added 5 commits October 11, 2026 20:09
@KenTandrian
chore(deps): bump bootstrap to 5.3.8
1670658
@KenTandrian
feat(client): update variables and configs
fefd8b4
@KenTandrian
feat(ui): update legacy variables
6ae3f67
@KenTandrian
fix(client): portfolio performance alignment
b6c693d
@KenTandrian
Merge remote-tracking branch 'origin/main' into feature/upgrade-boots…
0d38478
…trap-to-version-5
dtslvr
dtslvr requested changes Oct 12, 2026
View reviewed changes

@dtslvr dtslvr left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you for the contribution, @KenTandrian! 😎

I have reviewed your changes and added a few comments.

Could you add an entry to the chanelog?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KenTandrian reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread apps/client/src/styles/bootstrap.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/client/src/styles/bootstrap.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/client/src/styles/bootstrap.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/client/src/styles/bootstrap.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/client/src/styles/bootstrap.scss Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread apps/client/src/app/components/portfolio-summary/portfolio-summary.component.html Resolved

Uh oh!

There was an error while loading. Please reload this page.

KenTandrian added 8 commits October 12, 2026 21:47
@KenTandrian
feat(docs): update changelog
5b6d4fc
@KenTandrian
fix(client): restore Bootstrap 4 defaults
811f1c0
@KenTandrian
feat(client): support negative margin
6bf7a2a
@KenTandrian
feat(client): add compatibility utilities for float and font-family
11ada61
@KenTandrian
fix(client): cleanup rules
c382f40
@KenTandrian
fix(client): resolve divider alignment
52296d9
@KenTandrian
Merge remote-tracking branch 'origin/main' into feature/upgrade-boots…
e23aa5a
…trap-to-version-5
@KenTandrian
fix(docs): update changelog
f06ee5b
@KenTandrian
KenTandrian requested a review from dtslvr October 12, 2026 18:01
KenTandrian and others added 7 commits October 13, 2026 01:10
@KenTandrian
Merge remote-tracking branch 'origin/main' into feature/upgrade-boots…
d0553f7
…trap-to-version-5
@KenTandrian
feat(docs): update changelog
a4c1648
@dtslvr
Merge branch 'main' into feature/upgrade-bootstrap-to-version-5
9392b13
@dtslvr
Update bootstrap to version 5.3.8
aa6a0c8
@dtslvr
Merge branch 'main' into feature/upgrade-bootstrap-to-version-5
101007a
@dtslvr
Update bootstrap to version 5.3.8
4402b45
@dtslvr
Merge branch 'main' into feature/upgrade-bootstrap-to-version-5
50847af
dtslvr
dtslvr approved these changes Oct 13, 2026
View reviewed changes

@dtslvr dtslvr left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for your work on this upgrade, @KenTandrian! 🙂

I have changed some smaller things and will merge it now. If you find something while testing, please let me know.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

KenTandrian reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@dtslvr
dtslvr merged commit c169311 into ghostfolio:main Oct 13, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@KenTandrian
KenTandrian deleted the feature/upgrade-bootstrap-to-version-5 branch October 14, 2026 14:57
@dtslvr dtslvr mentioned this pull request Oct 15, 2026
[LSC] Gradual Migration to Bootstrap 5 via Compatibility Shim #6967
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dtslvr dtslvr dtslvr approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@KenTandrian @dtslvr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.