Skip to content

Commit

Permalink
fix(Type): add v10 type tokens (#13776)
Browse files Browse the repository at this point in the history
* fix(Type): add v10 type tokens to v11

* test(Type): add style test to ensure v10 type tokens are exported

* fix(Type): use correct namespace

* test(snapshot): update snapshots

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored May 12, 2023
1 parent 9a2001a commit b33286f
Show file tree
Hide file tree
Showing 5 changed files with 1,595 additions and 1,381 deletions.
21 changes: 21 additions & 0 deletions packages/styles/__tests__/compat-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,25 @@ describe('@carbon/styles/scss/compat', () => {

expect(variable).toEqual(`var(--cds-background, ${theme['background']})`);
});

it('should export v10 type tokens', async () => {
await expect(
render(`
@use '../../type';
div {
@include type.type-style('caption-01');
@include type.type-style('caption-02');
@include type.type-style('body-short-01');
@include type.type-style('body-short-02');
@include type.type-style('body-long-01');
@include type.type-style('body-long-02');
@include type.type-style('productive-heading-01');
@include type.type-style('expressive-heading-01');
@include type.type-style('expressive-heading-03', true);
@include type.type-style('display-01', true);
}
`)
).resolves.not.toThrow();
});
});
Loading

0 comments on commit b33286f

Please sign in to comment.