Browse Source

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

* Improve font weight

* Update changelog
pull/2753/head
Thomas Kaul 10 months ago
committed by GitHub
parent
commit
492bc5e17b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGELOG.md
  2. 15
      libs/ui/src/lib/value/value.component.html
  3. 1
      libs/ui/src/lib/value/value.component.scss

3
CHANGELOG.md

@ -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

15
libs/ui/src/lib/value/value.component.html

@ -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>

1
libs/ui/src/lib/value/value.component.scss

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

Loading…
Cancel
Save