mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-08-28 05:27:41 +00:00
Node classes were built in two places. The parser split the `class` attribute on commas and whitespace, but the import transform re-split the raw attribute on commas only. A space-separated class on an import placeholder became a single class name, so stylesheet rules did not match. That included the `class="fast shared"` example in the imports docs. - add `Node::add_class`, replacing the duplicate append helpers in `SemanticState` and `ImportTransform` - read `node.classes` in `placeholder_config` instead of re-parsing the raw attribute, so class splitting happens in exactly one place - name the separator rule `split_class_attr`, splitting on commas and then whitespace so empty entries need no trimming - drop the unused `Node::class` accessor that invited the re-parse - keep the comma-compatibility note in the DOT attribute reference only Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| brainstorms | ||
| ideation | ||
| internal | ||
| plans | ||
| public | ||
| superpowers | ||