Feature/improve font weight in value component (#2747)
* Improve font weight * Update changelog
This commit is contained in:
parent
6c37737051
commit
492bc5e17b
@ -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
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user