Skip to content

Commit

Permalink
Merge pull request #52 from KB-iGOT/survey-popup-icon-issye
Browse files Browse the repository at this point in the history
update for survey popup ourside click
  • Loading branch information
vishnubansaltarento authored Oct 7, 2024
2 parents cc7ab3e + 92e50cd commit 4912af0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="main-survey flex items-center justify-center" *ngIf="isSurveyPopup">
<div class="main-survey flex items-center justify-center" *ngIf="isSurveyPopup" (click)="clickedOut($event)">
<div class="surver-inner">
<a mat-icon-button class="close-button flex" (click)="closeCard()">
<mat-icon>close</mat-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@

.survey-img-link {
cursor: pointer;
width: 80%;
width: 100%;
margin: auto;
background-color: transparent !important;
justify-content: center;
}
.close-button {
cursor: pointer;
Expand Down Expand Up @@ -70,7 +71,7 @@
}
.surver-inner {
padding:0;
width: 100%;
width: 80%;
overflow: hidden;
}

Expand All @@ -84,5 +85,11 @@
height: auto;
}

.surver-inner mat-icon {
background-color: white;
padding: 5px;
border-radius: 50%;
}



Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@ export class SurveyFormComponent implements OnInit {
this.localStorageFlag = false
}
}

clickedOut(event: any) {
if (event.target.className.includes("main-survey")) {
this.isSurveyPopup = false
if (this.localStorageFlag) {
localStorage.setItem('surveyPopup', 'false')
this.localStorageFlag = false
}
}
}
}

0 comments on commit 4912af0

Please sign in to comment.