Skip to content

Commit

Permalink
Update Bootstrap 5 dependency to current version
Browse files Browse the repository at this point in the history
Unpin Bootstrap 5 and update it to the current version. Due to breaking
changes introduced in v5.2.0 and v5.3.0, and additional import for maps
was needed, updating links using the heading class to use the
default link colour was needed to be set, and updating the default
background colour variable for cards and list group items needed to be
set.
  • Loading branch information
anvit committed Jul 16, 2024
1 parent bd0952d commit 28f4e67
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 13 deletions.
30 changes: 18 additions & 12 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 @@ -9,7 +9,7 @@
"@uppy/core": "^2.0.3",
"@uppy/dashboard": "^2.0.3",
"@uppy/xhr-upload": "^2.0.3",
"bootstrap": "~5.1.1",
"bootstrap": "^5.3.0",
"bootstrap-autocomplete": "^2.3.7",
"imagesloaded": "^4.1.4",
"jquery": "^3.6.0",
Expand Down
10 changes: 10 additions & 0 deletions plugins/arDominionB5Plugin/scss/_buttonsandlinks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,13 @@
font-weight: 700;
text-decoration: underline;
}

a {
&.h1,
&.h2,
&.h3,
&.h4,
&.h5 {
color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
}
}
8 changes: 8 additions & 0 deletions plugins/arDominionB5Plugin/scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,11 @@ body > iframe,
}
}
}

.card {
--bs-card-bg: var(--bs-white);
}

.list-group-item {
--bs-list-group-bg: var(--bs-white);
}
1 change: 1 addition & 0 deletions plugins/arDominionB5Plugin/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins";
@import "bootstrap/scss/maps";
@import "bootstrap/scss/utilities";

// Custom utilities
Expand Down

0 comments on commit 28f4e67

Please sign in to comment.