From 06721f24e0083efbb88507f98b8f0ac93a45f651 Mon Sep 17 00:00:00 2001 From: Bastian Wagner Date: Sun, 23 Aug 2026 16:51:07 +0200 Subject: [PATCH] fix(web): style combat guard/enrage banners off semantic classes, not test hooks --- .../combat/combat-page/combat-page.component.html | 4 ++-- .../combat/combat-page/combat-page.component.scss | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/web/src/app/features/combat/combat-page/combat-page.component.html b/apps/web/src/app/features/combat/combat-page/combat-page.component.html index fa8831b..92062a7 100644 --- a/apps/web/src/app/features/combat/combat-page/combat-page.component.html +++ b/apps/web/src/app/features/combat/combat-page/combat-page.component.html @@ -70,11 +70,11 @@ } @if (monsterGuardLabel(); as guard) { -

{{ guard }}

+

{{ guard }}

} @if (monsterIsEnraged()) { -

+

{{ combat.monster.name }} is enraged.

} diff --git a/apps/web/src/app/features/combat/combat-page/combat-page.component.scss b/apps/web/src/app/features/combat/combat-page/combat-page.component.scss index 9db73bd..52aad6a 100644 --- a/apps/web/src/app/features/combat/combat-page/combat-page.component.scss +++ b/apps/web/src/app/features/combat/combat-page/combat-page.component.scss @@ -424,13 +424,14 @@ } // The guard and enrage banners are the same shape and role as the telegraph -// above -- same class, same rule -- only the accent changes, picked off the -// data attribute the tests already hook into. -[data-combat-guard] { +// above -- same class, same rule -- only the accent changes. data-combat-guard +// / data-combat-enraged stay on the elements purely as test hooks; styling +// keys off the semantic modifier classes instead. +.combat__guard { color: var(--ar-blue); } -[data-combat-enraged] { +.combat__enraged { color: var(--ar-danger); }