ID:WORK-078Status:done
BEM Modifier Hygiene for Storytelling Runes
Priority:mediumComplexity:trivialSource:SPEC-028
No incremental history — criteria tracking started on Apr 21.
Several storytelling rune configs emit BEM modifier classes for free-form string attributes (aliases, tags, parent, scale, factionType, id, track, follows). These produce unusable CSS selectors like .rf-character--"Gandalf the Grey,Mithrandir". Add noBemClass: true to these modifiers so only data-* attributes are emitted.
character config: aliases and tags modifiers have noBemClass: truerealm config: scale, tags, and parent modifiers have noBemClass: truefaction config: factionType and tags modifiers have noBemClass: truelore config: tags modifier has noBemClass: trueplot config: tags modifier has noBemClass: truebeat config: id, track, and follows modifiers have noBemClass: truerefrakt inspect)Config-only changes in runes/storytelling/src/config.ts. Add noBemClass: true to each identified modifier. Run tests to verify data attributes are preserved and no CSS breaks.