Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Bugfix/resolve styling issues by splitting space-separated class bindings (#6848)

Kenrick Tandriand720651f786c
diff --git a/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html b/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html
index 93fd8d97f0..065e62de1e 100644
--- a/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html
+++ b/libs/ui/src/lib/historical-market-data-editor/historical-market-data-editor.component.html
@@ -6,14 +6,16 @@
@for (day of days; track day) {
<div
class="day"
- [class]="{
- 'cursor-pointer valid': isDateOfInterest(
- `${itemByMonth.key}-${formatDay(day)}`
- ),
- available:
- marketDataByMonth[itemByMonth.key][formatDay(day)]?.marketPrice,
- today: isToday(`${itemByMonth.key}-${formatDay(day)}`)
- }"
+ [class.available]="
+ marketDataByMonth[itemByMonth.key][formatDay(day)]?.marketPrice
+ "
+ [class.cursor-pointer]="
+ isDateOfInterest(`${itemByMonth.key}-${formatDay(day)}`)
+ "
+ [class.today]="isToday(`${itemByMonth.key}-${formatDay(day)}`)"
+ [class.valid]="
+ isDateOfInterest(`${itemByMonth.key}-${formatDay(day)}`)
+ "
[title]="
(`${itemByMonth.key}-${formatDay(day)}`
| date: defaultDateFormat()) ?? ''
diff --git a/libs/ui/src/lib/value/value.component.html b/libs/ui/src/lib/value/value.component.html
index 57949fbe2e..d5476f42dd 100644
--- a/libs/ui/src/lib/value/value.component.html
+++ b/libs/ui/src/lib/value/value.component.html
@@ -40,10 +40,9 @@
}
<div
class="mb-0 value"
- [class]="{
- 'font-weight-bold h2': size === 'large',
- h4: size === 'medium'
- }"
+ [class.font-weight-bold]="size === 'large'"
+ [class.h2]="size === 'large'"
+ [class.h4]="size === 'medium'"
>
@if (value === null) {
<span class="text-monospace text-muted">*****</span>
@@ -60,10 +59,9 @@
@if (isString) {
<div
class="mb-0 text-truncate value"
- [class]="{
- 'font-weight-bold h2': size === 'large',
- h4: size === 'medium'
- }"
+ [class.font-weight-bold]="size === 'large'"
+ [class.h2]="size === 'large'"
+ [class.h4]="size === 'medium'"
>
{{ formattedValue }}
</div>