tickets

hycon #104

UI framework: Raw CSS string pushed into a `style` element

open

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-pending that exists for the same job. Framework way: the shell owns the rows, so the shell decides which row is active: main.hl reads the matched route (COMPONENTS.md "route — the matched route, on every level", ticket #197) and binds a class on the row; the look is one Style rule in main.hl. No CSS text built at runtime.

History

  1. 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.