Feature/improve font weight in value component (#2747)

* Improve font weight

* Update changelog
This commit is contained in:
Thomas Kaul 2023-12-16 14:41:50 +01:00 committed by GitHub
parent 6c37737051
commit 492bc5e17b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 4 deletions

View File

@ -9,8 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Upgraded to _Inter_ 4 font family - Improved the font weight in the value component
- Improved the language localization for Türkçe (`tr`) - Improved the language localization for Türkçe (`tr`)
- Upgraded to _Inter_ 4 font family
### Fixed ### Fixed

View File

@ -16,14 +16,20 @@
<div <div
*ngIf="isPercent" *ngIf="isPercent"
class="mb-0 value" class="mb-0 value"
[ngClass]="{ h2: size === 'large', h4: size === 'medium' }" [ngClass]="{
'font-weight-bold h2': size === 'large',
h4: size === 'medium'
}"
> >
{{ formattedValue }}% {{ formattedValue }}%
</div> </div>
<div <div
*ngIf="!isPercent" *ngIf="!isPercent"
class="mb-0 value" 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"> <ng-container *ngIf="value === null">
<span class="text-monospace text-muted">***</span> <span class="text-monospace text-muted">***</span>
@ -42,7 +48,10 @@
<ng-container *ngIf="isString"> <ng-container *ngIf="isString">
<div <div
class="mb-0 text-truncate value" class="mb-0 text-truncate value"
[ngClass]="{ h2: size === 'large', h4: size === 'medium' }" [ngClass]="{
'font-weight-bold h2': size === 'large',
h4: size === 'medium'
}"
> >
{{ formattedValue }} {{ formattedValue }}
</div> </div>

View File

@ -4,6 +4,7 @@
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
.h2 { .h2 {
font-variant-numeric: initial;
line-height: 1; line-height: 1;
} }
} }