forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed aria-controls on HealthComponentComponent, HealthInfoComponent, HealthInfoComponentComponent, HealthPanelComponent pointing to non-existing id - Fixed the tabs not having the role tab on its tabs - Fixed aria-expanded being set to true when collapsed and backwards for HealthPanelComponent & HealthInfoComponent - Fixed minor alignment issues
- Loading branch information
1 parent
0534722
commit 4873815
Showing
8 changed files
with
40 additions
and
30 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
src/app/health-page/health-info/health-info-component/health-info-component.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/app/health-page/health-panel/health-component/health-component.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 12 additions & 9 deletions
21
src/app/health-page/health-panel/health-panel.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
<p class="h4">{{'health-page.status' | translate}} : <ds-health-status [status]="healthResponse.status"></ds-health-status></p> | ||
<p class="h4"> | ||
{{'health-page.status' | translate}}: | ||
<ds-health-status [status]="healthResponse.status" class="d-inline-flex"></ds-health-status> | ||
</p> | ||
<ngb-accordion #acc="ngbAccordion" [activeIds]="activeId"> | ||
<ngb-panel [id]="entry.key" *ngFor="let entry of healthResponse.components | dsObjNgFor"> | ||
<ng-template ngbPanelHeader> | ||
<div class="w-100 d-flex justify-content-between collapse-toggle" ngbPanelToggle (click)="acc.toggle(entry.key)" data-test="component"> | ||
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" [attr.aria-expanded]="!acc.isExpanded(entry.key)" | ||
aria-controls="collapsePanels"> | ||
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" ngbPanelToggle (click)="acc.toggle(entry.key)" data-test="component"> | ||
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" [attr.aria-expanded]="acc.isExpanded(entry.key)" | ||
[attr.aria-controls]="'health-panel-' + entry.key + '-content'"> | ||
{{ getPanelLabel(entry.key) | titlecase }} | ||
</button> | ||
<div class="text-right d-flex"> | ||
<div class="text-right d-flex gap-2"> | ||
<ds-health-status [status]="entry.value?.status"></ds-health-status> | ||
<div class="ml-3 d-inline-block"> | ||
<div class="d-flex my-auto"> | ||
<span *ngIf="acc.isExpanded(entry.key)" class="fas fa-chevron-up fa-fw"></span> | ||
<span *ngIf="!acc.isExpanded(entry.key)" class="fas fa-chevron-down fa-fw"></span> | ||
</div> | ||
</div> | ||
</div> | ||
</ng-template> | ||
<ng-template ngbPanelContent> | ||
<ds-health-component [healthComponent]="entry.value" [healthComponentName]="entry.key"></ds-health-component> | ||
<ds-health-component [healthComponent]="entry.value" [healthComponentName]="entry.key" | ||
[id]="'health-panel-' + entry.key + '-content'"> | ||
</ds-health-component> | ||
</ng-template> | ||
</ngb-panel> | ||
</ngb-accordion> | ||
|
||
|
6 changes: 3 additions & 3 deletions
6
src/app/health-page/health-panel/health-status/health-status.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<ng-container [ngSwitch]="status"> | ||
<i *ngSwitchCase="HealthStatus.UP" | ||
class="fa fa-check-circle text-success ml-2 mt-1" | ||
class="fa fa-check-circle text-success my-auto" | ||
ngbTooltip="{{'health-page.status.ok.info' | translate}}" container="body" ></i> | ||
<i *ngSwitchCase="HealthStatus.UP_WITH_ISSUES" | ||
class="fa fa-exclamation-triangle text-warning ml-2 mt-1" | ||
class="fa fa-exclamation-triangle text-warning my-auto" | ||
ngbTooltip="{{'health-page.status.warning.info' | translate}}" container="body"></i> | ||
<i *ngSwitchCase="HealthStatus.DOWN" | ||
class="fa fa-times-circle text-danger ml-2 mt-1" | ||
class="fa fa-times-circle text-danger my-auto" | ||
ngbTooltip="{{'health-page.status.error.info' | translate}}" container="body"></i> | ||
|
||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:host { | ||
display: flex; | ||
} |