fix(web): style combat guard/enrage banners off semantic classes, not test hooks
This commit is contained in:
@@ -70,11 +70,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@if (monsterGuardLabel(); as guard) {
|
@if (monsterGuardLabel(); as guard) {
|
||||||
<p class="combat__telegraph" data-combat-guard role="status">{{ guard }}</p>
|
<p class="combat__telegraph combat__guard" data-combat-guard role="status">{{ guard }}</p>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (monsterIsEnraged()) {
|
@if (monsterIsEnraged()) {
|
||||||
<p class="combat__telegraph" data-combat-enraged role="status">
|
<p class="combat__telegraph combat__enraged" data-combat-enraged role="status">
|
||||||
{{ combat.monster.name }} is enraged.
|
{{ combat.monster.name }} is enraged.
|
||||||
</p>
|
</p>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -424,13 +424,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The guard and enrage banners are the same shape and role as the telegraph
|
// 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
|
// above -- same class, same rule -- only the accent changes. data-combat-guard
|
||||||
// data attribute the tests already hook into.
|
// / data-combat-enraged stay on the elements purely as test hooks; styling
|
||||||
[data-combat-guard] {
|
// keys off the semantic modifier classes instead.
|
||||||
|
.combat__guard {
|
||||||
color: var(--ar-blue);
|
color: var(--ar-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-combat-enraged] {
|
.combat__enraged {
|
||||||
color: var(--ar-danger);
|
color: var(--ar-danger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user