Skip to content

Commit

Permalink
feat: support will-change utilities
Browse files Browse the repository at this point in the history
Fixes #343
  • Loading branch information
muhammadsammy committed Dec 17, 2021
1 parent 0a1be3d commit 0033a52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cli/core/ClassnamesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export class ClassnamesGenerator {
...nonConfigurableClassNames.interactivity,
cursor: Object.keys(this._theme.cursor).map(x => 'cursor-' + x),
caretColor: this.generateClassesWithColors('caretColor'),
willChange: Object.keys(this._theme.willChange).map(x => 'will-change-' + x),
};
};

Expand Down
3 changes: 2 additions & 1 deletion src/cli/types/classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ type TInteractivityCategoryItem =
| 'pointerEvents'
| 'resize'
| 'userSelect'
| 'caretColor';
| 'caretColor'
| 'willChange';

type TLayoutCategoryItem =
| 'display'
Expand Down

0 comments on commit 0033a52

Please sign in to comment.