Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Satpal Tanan committed Aug 13, 2023
1 parent dfbf3e3 commit 3ae3c7f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
[ngClass]="selectedCountry?.flagClass"
></span>
<span class="country-selector-code" *ngIf="selectedCountry?.dialCode"
>+{{ selectedCountry.dialCode }}</span
>+{{ selectedCountry.dialCode }}</span
>
</button>
<mat-menu #menu="matMenu"
class="ngx-mat-tel-input-mat-menu-panel"
backdropClass="ngx-mat-tel-input-overlay-backdrop"
overlayPanelClass="ngx-mat-tel-input-overlay-pane">
class="ngx-mat-tel-input-mat-menu-panel"
backdropClass="ngx-mat-tel-input-overlay-backdrop"
overlayPanelClass="ngx-mat-tel-input-overlay-pane">
<input
*ngIf="enableSearch"
class="country-search"
Expand All @@ -26,22 +26,24 @@
[placeholder]="searchPlaceholder"
(click)="$event.stopPropagation()"
/>
<button
type="button"
mat-menu-item
class="country-list-button"
*ngFor="let country of preferredCountriesInDropDown"
(click)="onCountrySelect(country, focusable)"
>
<div class="icon-wrapper">
<div class="flag" [ngClass]="country.flagClass"></div>
</div>
<div class="label-wrapper">
{{ country.name }}
<span *ngIf="country?.dialCode">+{{ country.dialCode }}</span>
</div>
</button>
<mat-divider *ngIf="preferredCountriesInDropDown?.length"></mat-divider>
<ng-container *ngIf="!searchCriteria">
<button
type="button"
mat-menu-item
class="country-list-button"
*ngFor="let country of preferredCountriesInDropDown"
(click)="onCountrySelect(country, focusable)"
>
<div class="icon-wrapper">
<div class="flag" [ngClass]="country.flagClass"></div>
</div>
<div class="label-wrapper">
{{ country.name }}
<span *ngIf="country?.dialCode">+{{ country.dialCode }}</span>
</div>
</button>
<mat-divider *ngIf="preferredCountriesInDropDown?.length"></mat-divider>
</ng-container>
<ng-container *ngFor="let country of allCountries">
<button
type="button"
Expand All @@ -63,7 +65,7 @@
<input
matInput
type="tel"
autocomplete="off"
autocomplete="tel"
[ngClass]="cssClass"
(blur)="onTouched()"
(keypress)="onInputKeyPress($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ input {
border-bottom: 1px solid #ddd;
font-size: 14px;
padding: 20px 20px 24px;
position: sticky;
top: 0;
background-color: #fff;
z-index: 9;
}
}
.icon-wrapper {
Expand Down

0 comments on commit 3ae3c7f

Please sign in to comment.