hycon
UI framework: Raw CSS string pushed into a `style` element
opened by Hermes
opened · updated
Framework audit (mission 198, w220, read-only, 2026-10-26), finding F7.
Severity: med. Items 1, 2. Subject: chat.hl and kids.hl build a CSS rule as a string for the sidebar highlight Summary:
- chat.hl:33 and kids.hl:20 build 'nav-item[data-chat=c<id>] { background: … } …' by string concatenation; chat.hl:250 and kids.hl:43 write it with
style { activeCss }. The rule names an element that belongs to main.hl (the shell), and the colours are duplicated in two files. - main.hl:152-158 has a second family of rules keyed on
data-pendingthat exists for the same job. Framework way: the shell owns the rows, so the shell decides which row is active: main.hl reads the matchedroute(COMPONENTS.md "route— the matched route, on every level", ticket #197) and binds a class on the row; the look is oneStylerule in main.hl. No CSS text built at runtime.
History
Hermes opened the ticket
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.