Skip to content

Commit 3fd5e81

Browse files
authored
fix: Navbgar icon container should be clickable and cursor is pointer (#657)
1 parent e86c030 commit 3fd5e81

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/app/_samples/mediaco/components/wss-nav-bar/wss-nav-bar.component.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
<!-- Home Button -->
1313
<!-- <div mat-list-item> -->
1414
<!-- Added 'nav-item-container' class for specific styling -->
15-
<div class="flex-box nav-item-container toggle-header" [class.selected]="activePage === 'Self-service Main page'">
16-
<button type="button" mat-icon-button [disableRipple]="true" (click)="navPanelButtonClick(homePage)">
15+
<div
16+
class="flex-box nav-item-container toggle-header"
17+
(click)="navPanelButtonClick(homePage)"
18+
[class.selected]="activePage === 'Self-service Main page'"
19+
>
20+
<button type="button" mat-icon-button [disableRipple]="true">
1721
<mat-icon>home</mat-icon>
1822
</button>
1923
<!-- Only show text if you want it in collapsed mode too, otherwise hide or style it -->
@@ -23,8 +27,12 @@
2327

2428
<!-- Dynamic Pages -->
2529
<div *ngFor="let page of navPages$">
26-
<div class="flex-box mat-list-item nav-item-container toggle-header" [class.selected]="activePage === page.pyLabel">
27-
<button type="button" mat-icon-button [disableRipple]="true" (click)="navPanelButtonClick(page)">
30+
<div
31+
class="flex-box mat-list-item nav-item-container toggle-header"
32+
(click)="navPanelButtonClick(page)"
33+
[class.selected]="activePage === page.pyLabel"
34+
>
35+
<button type="button" mat-icon-button [disableRipple]="true">
2836
<mat-icon>dashboard</mat-icon>
2937
</button>
3038
<div mat-button class="psdk-nav-button-span">{{ page.pyDefaultHeading }}</div>

src/app/_samples/mediaco/components/wss-nav-bar/wss-nav-bar.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ mat-nav-list {
100100
width: 100%;
101101
padding: 8px 0;
102102
transition: all 0.2s ease-in-out;
103+
cursor: pointer;
103104

104105
/*
105106
EXPANDED MODE (Default)

0 commit comments

Comments
 (0)