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:
14
specs/020-fix-zero-hp-opacity/data-model.md
Normal file
14
specs/020-fix-zero-hp-opacity/data-model.md
Normal 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.
|
||||
Reference in New Issue
Block a user