Bugfix/improve numeric comparison of strings in value component (#4330)

* Improve numeric comparison of strings

* Update changelog
This commit is contained in:
Thomas Kaul 2025-02-24 13:53:05 +01:00 committed by GitHub
parent 7577a452f0
commit 190abdf9cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded `prettier` from version `3.4.2` to `3.5.1`
### Fixed
- Improved the numeric comparison of strings in the value component
## 2.140.0 - 2025-02-20
### Changed

View File

@ -10,8 +10,8 @@
>
<ng-container *ngIf="isNumber || value === null">
<ng-container *ngIf="colorizeSign && !useAbsoluteValue">
<div *ngIf="value > 0" class="mr-1 text-success">+</div>
<div *ngIf="value < 0" class="mr-1 text-danger">-</div>
<div *ngIf="+value > 0" class="mr-1 text-success">+</div>
<div *ngIf="+value < 0" class="mr-1 text-danger">-</div>
</ng-container>
<div
*ngIf="isPercent"