Skip to content

Commit 7e87f5e

Browse files
committed
fix(bidir): expose getter for rtl check
Closes #5903
1 parent 7fdf075 commit 7e87f5e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ All notable changes for each version of this project will be documented in this
106106
@include igx-progress-circular($theme);
107107
```
108108
- RTL support
109-
- `IgxLinearProgressBar`:
110-
- RTL support
111109

112110
## 8.2.6
113111

projects/igniteui-angular/src/lib/progressbar/progressbar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ export class IgxCircularProgressBarComponent extends BaseProgress implements Aft
762762
}
763763

764764
private getProgress(percentage: number) {
765-
return this._directionality.value === 'rtl' ?
765+
return this._directionality.rtl ?
766766
this._circumference + (percentage * this._circumference / 100) :
767767
this._circumference - (percentage * this._circumference / 100);
768768
}

projects/igniteui-angular/src/lib/services/direction/directionality.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ export class IgxDirectionality {
5050
return this._document;
5151
}
5252

53+
public get rtl() {
54+
return this._dir === 'rtl';
55+
}
56+
5357
constructor(@Inject(DIR_DOCUMENT) document) {
5458
this._document = <Document>document;
5559
const bodyDir = this._document.body ? this._document.body.dir : null;

0 commit comments

Comments
 (0)