Browse Source
Feature/improve font weight in value component (#2747)
* Improve font weight
* Update changelog
pull/2753/head
Thomas Kaul
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
15 additions and
4 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/value/value.component.html
-
libs/ui/src/lib/value/value.component.scss
|
|
@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Upgraded to _Inter_ 4 font family |
|
|
|
- Improved the font weight in the value component |
|
|
|
- Improved the language localization for Türkçe (`tr`) |
|
|
|
- Upgraded to _Inter_ 4 font family |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
|
|
@ -16,14 +16,20 @@ |
|
|
|
<div |
|
|
|
*ngIf="isPercent" |
|
|
|
class="mb-0 value" |
|
|
|
[ngClass]="{ h2: size === 'large', h4: size === 'medium' }" |
|
|
|
[ngClass]="{ |
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
h4: size === 'medium' |
|
|
|
}" |
|
|
|
> |
|
|
|
{{ formattedValue }}% |
|
|
|
</div> |
|
|
|
<div |
|
|
|
*ngIf="!isPercent" |
|
|
|
class="mb-0 value" |
|
|
|
[ngClass]="{ h2: size === 'large', h4: size === 'medium' }" |
|
|
|
[ngClass]="{ |
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
h4: size === 'medium' |
|
|
|
}" |
|
|
|
> |
|
|
|
<ng-container *ngIf="value === null"> |
|
|
|
<span class="text-monospace text-muted">***</span> |
|
|
@ -42,7 +48,10 @@ |
|
|
|
<ng-container *ngIf="isString"> |
|
|
|
<div |
|
|
|
class="mb-0 text-truncate value" |
|
|
|
[ngClass]="{ h2: size === 'large', h4: size === 'medium' }" |
|
|
|
[ngClass]="{ |
|
|
|
'font-weight-bold h2': size === 'large', |
|
|
|
h4: size === 'medium' |
|
|
|
}" |
|
|
|
> |
|
|
|
{{ formattedValue }} |
|
|
|
</div> |
|
|
|
|
|
@ -4,6 +4,7 @@ |
|
|
|
font-variant-numeric: tabular-nums; |
|
|
|
|
|
|
|
.h2 { |
|
|
|
font-variant-numeric: initial; |
|
|
|
line-height: 1; |
|
|
|
} |
|
|
|
} |
|
|
|