Skip to content

Commit

Permalink
add support for will-change utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Dec 10, 2021
1 parent cf93ba2 commit c9289c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/default-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,13 @@ export function getDefaultConfig() {
* @see https://tailwindcss.com/docs/user-select
*/
select: [{ select: ['none', 'text', 'all', 'auto'] }],
/**
* Will Change
* @see https://tailwindcss.com/docs/will-change
*/
'will-change': [
{ 'will-change': ['auto', 'scroll', 'contents', 'transform', isCustomValue] },
],
// SVG
/**
* Fill
Expand Down
1 change: 1 addition & 0 deletions tests/class-map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ test('class map has correct class groups at first part', () => {
visible: ['visibility'],
w: ['w'],
whitespace: ['whitespace'],
will: ['will-change'],
z: ['z'],
})
})
Expand Down

0 comments on commit c9289c2

Please sign in to comment.