Skip to content

Commit

Permalink
fix(common): fix sidenav button scrollUp and scrolldown (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz-access authored Nov 14, 2023
1 parent ce3e4cb commit da807d9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
57 changes: 28 additions & 29 deletions packages/common/src/lib/action/actionbar/actionbar.component.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<mat-list *ngIf="mode === actionbarMode.Dock" matListItemIcon>
<div
*ngIf="heightCondition && positionConditionTop && isDesktop"
id="topChevron"
<div
*ngIf="heightCondition && positionConditionTop && isDesktop"
id="topChevron"
>
<button
mat-icon-button
tooltip-position="below"
matTooltipShowDelay="500"
[matTooltip]="'igo.common.actionbar.scrollUp' | translate"
(click)="scrollUp()"
>
<button
mat-icon-button
tooltip-position="below"
matTooltipShowDelay="500"
[matTooltip]="'igo.common.actionbar.scrollUp' | translate"
(click)="scrollUp()"
>
<mat-icon svgIcon="chevron-up"></mat-icon>
</button>
</div>

<mat-icon svgIcon="chevron-up"></mat-icon>
</button>
</div>
<mat-list *ngIf="mode === actionbarMode.Dock" matListItemIcon>
<igo-actionbar-item
*ngIf="withToggleButton"
color="accent"
Expand Down Expand Up @@ -45,22 +44,22 @@
>
</igo-actionbar-item>
</ng-template>
</mat-list>

<div
*ngIf="heightCondition && positionConditionLow && isDesktop"
id="lowChevron"
<div
*ngIf="heightCondition && positionConditionLow && isDesktop"
id="lowChevron"
>
<button
mat-icon-button
tooltip-position="below"
matTooltipShowDelay="500"
[matTooltip]="'igo.common.actionbar.scrollDown' | translate"
(click)="scrollDown()"
>
<button
mat-icon-button
tooltip-position="below"
matTooltipShowDelay="500"
[matTooltip]="'igo.common.actionbar.scrollDown' | translate"
(click)="scrollDown()"
>
<mat-icon svgIcon="chevron-down"></mat-icon>
</button>
</div>
</mat-list>
<mat-icon svgIcon="chevron-down"></mat-icon>
</button>
</div>

<div *ngIf="mode === actionbarMode.Overlay">
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ $igo-actionbar-item-icon-padding: 8px;
top: 0;
background-color: white;
z-index: 3;

display: flex;
justify-content: center;
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
position: fixed;
top: unset;
Expand All @@ -53,11 +54,12 @@ $igo-actionbar-item-icon-padding: 8px;
}

#lowChevron {
position: fixed;
position: sticky;
bottom: 0;
background-color: white;
z-index: 3;
display: flex;
justify-content: center;
}

.igo-actionbar-overlay {
Expand Down

0 comments on commit da807d9

Please sign in to comment.