Skip to content

Commit

Permalink
chore(deps): Bump bootstrap from 5.2.0 to 5.3.3
Browse files Browse the repository at this point in the history
The search tooltip had strange behavior related to hovering.
I found a hack to disable that behavior.

Bumps [bootstrap](https://github.com/twbs/bootstrap) from 5.2.0 to 5.3.3.
- [Release notes](https://github.com/twbs/bootstrap/releases)
- [Commits](twbs/bootstrap@v5.2.0...v5.3.3)

---
updated-dependencies:
- dependency-name: bootstrap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and deivid-rodriguez committed Dec 27, 2024
1 parent 4e03901 commit e9310a4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions assets/javascripts/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ document.addEventListener('DOMContentLoaded', function () {
this.hidePopover = function () {
const popover = Popover.getInstance(this.searchInput);
popover.hide();
popover._activeTrigger['hover'] = true;
this.searchArrows.destroy();
};

this.showPopover = function (text) {
this.popoverContent = this.generatePopoverContent(text);
const popover = Popover.getInstance(this.searchInput);
popover._activeTrigger['hover'] = true;
popover._disposePopper();
popover.show();
document.querySelector('.popover-body').innerHTML = this.popoverContent;
Expand Down
8 changes: 4 additions & 4 deletions assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ $navbar-height: 50px;
}

// Boostrap 5 customization
// Document: https://getbootstrap.com/docs/5.2/customize/sass/#importing
// List of SCSS to load: https://github.com/twbs/bootstrap/blob/v5.2.0/scss/bootstrap.scss
// Document: https://getbootstrap.com/docs/5.3/customize/sass/#importing
// List of SCSS to load: https://github.com/twbs/bootstrap/blob/v5.3.3/scss/bootstrap.scss
@import "~bootstrap/scss/functions";

pre {
Expand All @@ -36,7 +36,7 @@ $icon-font-path: '~bootstrap/assets/fonts/bootstrap/';
// Note: tables, dropdown, button-group, accordion, breadcrumb, pagination,
// badge, alert, progress, list-group, close, toasts, modal, tooltip, carousel,
// spinners, offcanvas, and placeholders were excluded as they are not used as
// of Bootstrap 5.2.0
// of Bootstrap 5.3.3
@import "~bootstrap/scss/root";
@import "~bootstrap/scss/reboot";
@import "~bootstrap/scss/type";
Expand Down Expand Up @@ -70,7 +70,7 @@ $icon-font-path: '~bootstrap/assets/fonts/bootstrap/';
@import "anchorjs";
@import "search";

// More various utilities extended from Bootstrap 5.2
// More various utilities extended from Bootstrap 5.3
@import "opacity";

.row:after {
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"@popperjs/core": "^2.11.8",
"anchor-js": "^5.0.0",
"bootstrap": "^5.2.0",
"bootstrap": "^5.3.3",
"lunr": "^0.7.0"
}
}

0 comments on commit e9310a4

Please sign in to comment.