feat(site-builder): section blocks default to palette tokens
Refs #44 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
af43af7dc1
commit
488f208262
12 files changed
+93
-22
No files matched your search
@@ -84,3 +84,13 @@ describe('NumberCounter.craft.props includes the box-model/animation/visibility
|
||||
expect(props).toHaveProperty('hideOnMobile', false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('NumberCounter.toHtml palette token fallbacks (Refs #44)', () => {
|
||||
test('number -> primary token, label -> muted token when colours are absent', () => {
|
||||
const { html } = toHtml({ counters }, '');
|
||||
expect(html).toContain('color:var(--wsb-primary)');
|
||||
expect(html).toContain('color:var(--wsb-muted)');
|
||||
expect(html).not.toContain('#3b82f6');
|
||||
expect(html).not.toContain('#6b7280');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user