feat(site-builder): form blocks default to palette tokens
Refs #44 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d70f4933af
commit
af43af7dc1
6 files changed
+53
-14
No files matched your search
@@ -38,3 +38,11 @@ describe('FormButton.craft.props includes animation/visibility defaults', () =>
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('FormButton.toHtml palette token default (Refs #44)', () => {
|
||||
test('a new form button (craft default props) paints the primary token', () => {
|
||||
const { html } = toHtml({ ...(FormButton as any).craft.props }, '');
|
||||
expect(html).toContain('background-color:var(--wsb-primary)');
|
||||
expect(html).not.toContain('#3b82f6');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user