Skip to content

Commit 1b39826

Browse files
Mattia VianelliAndrea Barbasso
authored andcommitted
Merged in task/dspace-cris-2025_02_x/DSC-2704 (pull request DSpace#4048)
DSC-2704 Removed duplicated button to expand the accordion Approved-by: Andrea Barbasso
2 parents a0f6e9a + f129f1b commit 1b39826

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/cris-layout-box-container.component.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@
44
<ngb-panel id="{{box.shortname}}">
55
<ng-template ngbPanelTitle>
66
<span class="float-start" [innerHTML]="getBoxHeader()" tabindex="0"></span>
7-
<div class="d-inline-block float-end">
8-
<a class="btn-close"
9-
tabindex="0"
10-
role="button"
11-
[attr.aria-label]="(accordionRef.isExpanded(box.shortname) ? 'cris-layout.toggle.aria.close' : 'cris-layout.toggle.aria.open') | translate: {sectionHeader: getBoxHeader()}"
12-
[title]="(accordionRef.isExpanded(box.shortname) ? 'cris-layout.toggle.close' : 'cris-layout.toggle.open') | translate">
13-
@if (accordionRef.isExpanded(box.shortname)) {
14-
<span class="fas fa-chevron-up fa-fw"></span>
15-
}
16-
@if (!accordionRef.isExpanded(box.shortname)) {
17-
<span class="fas fa-chevron-down fa-fw"></span>
18-
}
19-
</a>
20-
</div>
217
</ng-template>
228
<ng-template ngbPanelContent>
239
<ng-container *ngComponentOutlet="getComponentRef(); injector: objectInjector;"></ng-container>

src/app/submission/sections/container/section-container.component.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@
3434
title="{{'submission.sections.status.info.title' | translate}}" role="img"
3535
[attr.aria-label]="'submission.sections.status.info.aria' | translate"></i>
3636
}
37-
<a class="btn-close" tabindex="0" role="button"
38-
[attr.aria-label]="(sectionRef.isOpen() ? 'submission.sections.toggle.aria.close' : 'submission.sections.toggle.aria.open') | translate: {sectionHeader: ('submission.sections.'+sectionData.header | translate)}"
39-
[title]="(sectionRef.isOpen() ? 'submission.sections.toggle.close' : 'submission.sections.toggle.open') | translate">
40-
@if (sectionRef.isOpen()) {
41-
<span [ngClass]="{ 'text-white' : sectionRef.isInfo()}"
42-
class="fas fa-chevron-up fa-fw"></span>
43-
} @else {
44-
<span class="fas fa-chevron-down fa-fw"></span>
45-
}
46-
</a>
4737
@if (!sectionRef.isMandatory()) {
4838
<a href="javascript:void(0);" class="me-3"
4939
(click)="removeSection($event)">

0 commit comments

Comments
 (0)