Skip to content

Commit

Permalink
MOSIP-21045 Added screen direction RTL for ara language
Browse files Browse the repository at this point in the history
Signed-off-by: Madhuravas <[email protected]>
  • Loading branch information
Madhuravas committed Feb 6, 2024
1 parent c42b14b commit 1b419a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
</div>
</div>
<mat-divider [vertical]="true" [inset]="true"></mat-divider>
<div *ngIf="showSecondaryForm" class="secondary-form" [ngStyle]="{'text-align': (secondaryLang==='ara') ? 'right' : 'left'}">
<div *ngIf="showSecondaryForm" class="secondary-form" [dir]="secondaryLang==='ara' ? 'rtl' : 'ltr'">
<mat-form-field style="padding-bottom: 10px;">
<mat-label><b>{{ "center.selectLanguage" | translate }}</b></mat-label>
<mat-select
Expand All @@ -428,7 +428,7 @@
</mat-option>
</mat-select>
</mat-form-field>
<strong class="title" [ngStyle]="isPrimaryLangRTL ? {'float':'right'} : {'float':'left'}">{{ secondaryLangDisplay }}</strong>
<strong class="title" >{{ secondaryLangDisplay }}</strong>
<span
*ngIf="!disableForms"
matTooltip="{{languageNames['keyboard-tooltip'] | translate }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3>{{ "center.location-details" | translate }}</h3>
</div>
<mat-divider [vertical]="true" [inset]="true"></mat-divider>
<div *ngIf="secondaryLanguageLabels && secondaryLang && showSecondaryForm" [formGroup]="secondaryForm"
[ngClass]="isSecondaryLangRTL ? 'secondary-form' : 'secondary-form-ltr'">
[ngClass]="isSecondaryLangRTL ? 'secondary-form' : 'secondary-form-ltr'" [dir]="isSecondaryLangRTL ? 'rtl' : 'ltl'">
<mat-form-field style="padding-bottom: 10px;">
<mat-label><b>{{ "center.selectLanguage" | translate }}</b></mat-label>
<mat-select formControlName="selectLanguage" id="selectLanguage"
Expand Down

0 comments on commit 1b419a3

Please sign in to comment.