Implement the 020-fix-zero-hp-opacity feature that replaces container-level opacity dimming with element-level opacity on individual leaf elements so that HP popover and condition picker render at full opacity for unconscious combatants

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-03-06 15:43:27 +01:00
parent 0c0da9b90e
commit 04a4f18f98
9 changed files with 489 additions and 14 deletions

View File

@@ -0,0 +1,14 @@
# Data Model: Fix Zero-HP Opacity
**Feature**: 020-fix-zero-hp-opacity
**Date**: 2026-03-06
## Entities
No data model changes required. This is a purely visual/CSS bug fix in the adapter layer.
The existing `deriveHpStatus()` domain function already correctly returns `"unconscious"` for combatants at 0 HP. The rendering logic that consumes this status is the only thing that changes.
## State
No new state is introduced. The existing `status` derived value (`"healthy" | "bloodied" | "unconscious"`) continues to drive the visual treatment.