SIG SELECT: fix major arcana reversed face slot order — title first, qualifier second after spin — TDD
DOM-second flex child appears first after card rotates 180°; swap qualifier/name slot assignments for major arcana so reversed face reads "The Schizo, / Enlightened" not "Enlightened / The Schizo"; spec updated to document the slot-swap invariant Code architected by Disco DeDisco <discodedisco@outlook.com> Git commit message Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -148,8 +148,10 @@ var SigSelect = (function () {
|
||||
// - Non-major w/o reversal: fall back to mirroring the polarity qualifier
|
||||
var reversal = cardEl.dataset.reversal || '';
|
||||
if (isMajor) {
|
||||
stageCard.querySelector('.fan-card-reversal-qualifier').textContent = qualifier;
|
||||
stageCard.querySelector('.fan-card-reversal-name').textContent = title;
|
||||
// Slots are swapped vs. non-major: spin reverses DOM order visually,
|
||||
// so qualifier-slot (DOM-second) appears first and name-slot (DOM-first) appears second.
|
||||
stageCard.querySelector('.fan-card-reversal-qualifier').textContent = title + ',';
|
||||
stageCard.querySelector('.fan-card-reversal-name').textContent = qualifier;
|
||||
} else if (reversal) {
|
||||
stageCard.querySelector('.fan-card-reversal-qualifier').textContent = reversal;
|
||||
stageCard.querySelector('.fan-card-reversal-name').textContent = title;
|
||||
|
||||
Reference in New Issue
Block a user