Skip to content

Commit e024025

Browse files
Wout-atmireLotteHofstedeybndtdonohue
authored
Upgrade to Bootstrap 5 & realign themes (#3506)
* 117631: upgraded bootstrap, ng-bootstrap and installed popper.js * 117631: SASS to CSS variables * 117631: Bootstrap 4 to 5 html/css fixes * 117631: Theming fixes after bootstrap upgrade * 117631: More theming fixes: accordions, spacing, search components etc * 117631: Fixed tests * 117631: Fixed offset issues * 117631: Fixed contrast ratio issue * 117631: Fixed variables, removed unnecessary mapping, fixed tables, upgraded to Bootstrap 5.3.3 * 118113: vertical footer deviders * 118113: remove button shadow * 118113: old checkboxes * 118113: Custom icons font-family * 118113: accordion color * 118113: table striped customizable background-color * 118113: revert vertical deviders in footer bs-secondary change * 118113: modal close button * 118113: add w-100 to btn-block elements * 118113: border radius * 118113: The date selector on the submission page gets squished to the side of its label fix * 118113: adding margins to dynamic-form-control-containers * 118113: adding gaps between sections of item submission form * 118113: icon font-family removed !important * 118113: removed !important from #legend_dc_date_issued * 118113: move --bs-border-radius to $bs-border-radius * 118113: remove new SCSS variable * 118113: reduce size for Item type labels * 118113: date picker border - transparent * 118113: drag-item-container elements on same line * 118113: specific border color for ds-number-picker buttons * Simplify variables & styles * 118627: html files * Fix new SCSS compile issues, remove yarn.lock * 118627: remove footer button shadow * 118627: custom login button radius * 118627: success button - white text * 118627: table alternate colors * Fix ghostly Bootstrap version, again * Override (ng-)bootstrap versions for @ng-dynamic-forms * 118627: Feedback - fix login button radius * 118627: Feedback - fix footer button shadows * 118627: Feedback - login border radius use $bs-border-radius-lg + change to rem * 118627: Tooltip issue * 118627: Metadata white authority badge * 118627: Align Back button * 118627: Bitstreams under Item's Metadata issue fix * 118627: select on edit collection page "arrow icon" * 118627: fix alignment issues * 118627: fix admin sidebar "Managment" label * 118627: Feedback - login button * 118627: Line above table heads * 118627: Remove HMTL accordion expandable arrow * 118627: bitstream table * 118627: notification "close button" * 118627: faint border/shadow around the expand buttons on hierarchical browse pages * 118627: tooltip margin * 118627: Bootstrap 5 changed the default gutter size to 24px * 118627: custom-aligning -> custom-alignment * 118627: lint-fix * 118627: lint fix * 118627: e2e Fix with new "btn-close" * 118627: e2e Fix heading order for access-control-form-container * 118627: access-control-form-container mr-4 to me-4 * 118627: update mr to me & ml to ms & pr to ps & pl to ps * 118627: Access Control "Mode" radiobuttons under Text * 118627: Item submission Publisher select icon positioning * 118627: resolved merge conflict with main (and npm install) * 118627: cherrypicking 3553 commits * Remove unused angular-idle-preload (cherry picked from commit fef5dd7) * 118627: npm install - to fix package-lock.json * 120594: hamberger menu not showing fix * 120594: big logo header issue * 120594: remove faint shadow * 120594: btn-transparent class * 120594: badge-* to bg-* * 120594: add padding-right & -left for rounded-pill * 120594: update test variables to fit the new bootstrap variables * 120594: add missing rss conditions * 120594: fix white badges * 118627: remove shadow on number-picker * 120594: revert white badge fix * 120594: re-add dropdown-button in dynamic-lookup-relation-search-tab * 120594: remove default radio button styling * 120594: full width radio buttons * 120594: edit collection page alignment * 120594: bg -> bg-primary * 120594: revert to old info color * 120594: revert media breakpoints * 120594: recover PR 3227 rss * 120594: remove login & logout from PR * 120594: ds-filter input & label gap * 120594: ds-filter aligning rows * 120594: remove navbar.module.ts * 120594: remove item-edit-bitstream.component.html * 120594: remove item-edit-bitstream-drag-handle.component.html * 120594: Fix vocabulary-treeview styling * 120594: Remove unused browse-by-metadata-page.component.html * 120594: red invalid input label * 120594: use old link color for number-picker: #1f7293 * 120594: move $theme-colors to sass override * 120594: spacing for upload icon * 120594: decrease media-breakpoint-down * 120594: PR 3227 rss * 120594: merge in main bootstrap variable mappings * 120594: restore all mapped variable that have a value * 120594: fix unset variable item-edit-bitstream-bundle.component.scss * 120594: old tooltip color * 120594: edit bitstream render text inline with the icon * Revert "120594: merge in main bootstrap variable mappings" This reverts commit 4e61b5f * 120594: add non-default mapped variables with references * 120594: add docs in _bootstrap_variables_mapping.scss * 120594: use bootstrap variables instead of hardcoded values --------- Co-authored-by: lotte <[email protected]> Co-authored-by: Yura Bondarenko <[email protected]> Co-authored-by: Yury Bondarenko <[email protected]> Co-authored-by: Tim Donohue <[email protected]>
1 parent b480317 commit e024025

File tree

312 files changed

+1040
-1638
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

312 files changed

+1040
-1638
lines changed

cypress/e2e/submission.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe('New Submission page', () => {
217217
});
218218

219219
// Close popup window
220-
cy.get('ds-dynamic-lookup-relation-modal button.close').click();
220+
cy.get('ds-dynamic-lookup-relation-modal button.btn-close').click();
221221

222222
// Back on the form, click the discard button to remove new submission
223223
// Clicking it will display a confirmation, which we will confirm with another click

package-lock.json

Lines changed: 20 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@
7373
"@angular/forms": "^17.3.11"
7474
},
7575
"@ng-dynamic-forms/ui-ng-bootstrap": {
76-
"ngx-mask": "14.2.4"
76+
"ngx-mask": "14.2.4",
77+
"@ng-bootstrap/ng-bootstrap": "^12.0.0",
78+
"bootstrap": "^5.3"
7779
},
7880
"@ngtools/webpack": {
7981
"@angular/compiler-cli": "^17.3.11",
@@ -110,7 +112,7 @@
110112
"@angular/ssr": "^17.3.11",
111113
"@babel/runtime": "7.26.7",
112114
"@kolkov/ngx-gallery": "^2.0.1",
113-
"@ng-bootstrap/ng-bootstrap": "^11.0.0",
115+
"@ng-bootstrap/ng-bootstrap": "^12.0.0",
114116
"@ng-dynamic-forms/core": "^16.0.0",
115117
"@ng-dynamic-forms/ui-ng-bootstrap": "^16.0.0",
116118
"@ngrx/effects": "^17.1.1",
@@ -120,7 +122,7 @@
120122
"@nicky-lenaers/ngx-scroll-to": "^14.0.0",
121123
"angulartics2": "^12.2.0",
122124
"axios": "^1.7.9",
123-
"bootstrap": "^4.6.1",
125+
"bootstrap": "^5.3",
124126
"cerialize": "0.1.18",
125127
"cli-progress": "^3.12.0",
126128
"colors": "^1.4.0",

src/app/access-control/bulk-access/browse/bulk-access-browse.component.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
<ngb-accordion #acc="ngbAccordion" [activeIds]="'browse'">
22
<ngb-panel [id]="'browse'">
3-
<ng-template ngbPanelHeader>
4-
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" ngbPanelToggle (click)="acc.toggle('browse')"
3+
<ng-template ngbPanelTitle>
4+
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" (click)="acc.toggle('browse')"
55
data-test="browse">
66
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()"
77
[attr.aria-expanded]="acc.isExpanded('browse')"
88
aria-controls="bulk-access-browse-panel-content">
99
{{ 'admin.access-control.bulk-access-browse.header' | translate }}
1010
</button>
11-
<div class="text-right d-flex gap-2">
12-
<div class="d-flex my-auto">
13-
<span *ngIf="acc.isExpanded('browse')" class="fas fa-chevron-up fa-fw"></span>
14-
<span *ngIf="!acc.isExpanded('browse')" class="fas fa-chevron-down fa-fw"></span>
15-
</div>
16-
</div>
1711
</div>
1812
</ng-template>
1913
<ng-template ngbPanelContent>
@@ -22,7 +16,7 @@
2216
<li [ngbNavItem]="'search'" role="presentation">
2317
<a ngbNavLink>{{'admin.access-control.bulk-access-browse.search.header' | translate}}</a>
2418
<ng-template ngbNavContent>
25-
<div class="mx-n3">
19+
<div class="bulk-access-search">
2620
<ds-search [configuration]="'administrativeBulkAccess'"
2721
[selectable]="true"
2822
[selectionConfig]="{ repeatable: true, listId: listId }"
@@ -42,7 +36,7 @@
4236
[showPaginator]="false"
4337
(prev)="pagePrev()"
4438
(next)="pageNext()">
45-
<ul *ngIf="(objectsSelected$|async)?.hasSucceeded" class="list-unstyled ml-4">
39+
<ul *ngIf="(objectsSelected$|async)?.hasSucceeded" class="list-unstyled ms-4">
4640
<li *ngFor='let object of (objectsSelected$|async)?.payload?.page | paginate: { itemsPerPage: (paginationOptions$ | async).pageSize,
4741
currentPage: (paginationOptions$ | async).currentPage, totalItems: (objectsSelected$|async)?.payload?.page.length }; let i = index; let last = last '
4842
class="mt-4 mb-4 d-flex"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.bulk-access-search {
2+
margin-right: calc(var(--bs-gutter-x, 1.5rem) / -2);
3+
margin-left: calc(var(--bs-gutter-x, 1.5rem) / -2);
4+
}

src/app/access-control/bulk-access/bulk-access.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1>{{ 'admin.access-control.bulk-access.title' | translate }}</h1>
77
<hr>
88

99
<div class="d-flex justify-content-end">
10-
<button class="btn btn-outline-primary mr-3" (click)="reset()">
10+
<button class="btn btn-outline-primary me-3" (click)="reset()">
1111
{{ 'access-control-cancel' | translate }}
1212
</button>
1313
<button class="btn btn-primary" [dsBtnDisabled]="!canExport()" (click)="submit()">

src/app/access-control/bulk-access/settings/bulk-access-settings.component.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
<ngb-accordion #acc="ngbAccordion" [activeIds]="'settings'">
22
<ngb-panel [id]="'settings'">
3-
<ng-template ngbPanelHeader>
3+
<ng-template ngbPanelTitle>
44
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" ngbPanelToggle (click)="acc.toggle('settings')" data-test="settings">
55
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" [attr.aria-expanded]="acc.isExpanded('settings')"
66
aria-controls="bulk-access-settings-panel-content">
77
{{ 'admin.access-control.bulk-access-settings.header' | translate }}
88
</button>
9-
<div class="text-right d-flex gap-2">
10-
<div class="d-flex my-auto">
11-
<span *ngIf="acc.isExpanded('settings')" class="fas fa-chevron-up fa-fw"></span>
12-
<span *ngIf="!acc.isExpanded('settings')" class="fas fa-chevron-down fa-fw"></span>
13-
</div>
14-
</div>
159
</div>
1610
</ng-template>
1711
<ng-template ngbPanelContent>

src/app/access-control/epeople-registry/epeople-registry.component.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<h1 id="header" class="pb-2">{{labelPrefix + 'head' | translate}}</h1>
66

77
<div>
8-
<button class="mr-auto btn btn-success addEPerson-button"
8+
<button class="me-auto btn btn-success addEPerson-button"
99
[routerLink]="'create'">
1010
<i class="fas fa-plus"></i>
11-
<span class="d-none d-sm-inline ml-1">{{labelPrefix + 'button.add' | translate}}</span>
11+
<span class="d-none d-sm-inline ms-1">{{labelPrefix + 'button.add' | translate}}</span>
1212
</button>
1313
</div>
1414
</div>
@@ -18,17 +18,17 @@ <h2 id="search" class="border-bottom pb-2">
1818
</h2>
1919
<form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)" class="d-flex justify-content-between">
2020
<div>
21-
<select name="scope" id="scope" formControlName="scope" class="form-control" aria-label="Search scope">
21+
<select name="scope" id="scope" formControlName="scope" class="form-select" aria-label="Search scope">
2222
<option value="metadata">{{labelPrefix + 'search.scope.metadata' | translate}}</option>
2323
<option value="email">{{labelPrefix + 'search.scope.email' | translate}}</option>
2424
</select>
2525
</div>
26-
<div class="flex-grow-1 mr-3 ml-3">
27-
<div class="form-group input-group">
26+
<div class="flex-grow-1 me-3 ms-3">
27+
<div class="mb-3 input-group">
2828
<input type="text" name="query" id="query" formControlName="query"
2929
class="form-control" [attr.aria-label]="labelPrefix + 'search.placeholder' | translate"
3030
[placeholder]="(labelPrefix + 'search.placeholder' | translate)">
31-
<span class="input-group-append">
31+
<span class="input-group-append">
3232
<button type="submit" class="search-button btn btn-primary">
3333
<i class="fas fa-search"></i> {{ labelPrefix + 'search.button' | translate }}
3434
</button>

src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 class="border-bottom pb-2">{{messagePrefix + '.edit' | translate}}</h1>
2929
<i class="fa fa-key"></i> {{'admin.access-control.epeople.actions.reset' | translate}}
3030
</button>
3131
</div>
32-
<div *ngIf="canImpersonate$ | async" between class="btn-group">
32+
<div *ngIf="canImpersonate$ | async" between class="btn-group ms-1">
3333
<button *ngIf="!isImpersonated" class="btn btn-primary" type="button" (click)="impersonate()">
3434
<i class="fa fa-user-secret"></i> {{'admin.access-control.epeople.actions.impersonate' | translate}}
3535
</button>

src/app/access-control/group-registry/group-form/members-list/members-list.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ <h3 id="search" class="border-bottom pb-2">
7575
</h3>
7676

7777
<form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)" class="d-flex justify-content-between">
78-
<div class="flex-grow-1 mr-3">
79-
<div class="form-group input-group mr-3">
78+
<div class="flex-grow-1 me-3">
79+
<div class="form-group input-group me-3">
8080
<input type="text" name="query" id="query" formControlName="query"
8181
class="form-control" aria-label="Search input">
8282
<span class="input-group-append">

0 commit comments

Comments
 (0)