Skip to content

Commit

Permalink
add logical properties support for float and clear
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Dec 21, 2023
1 parent a258e10 commit 2c0da8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/default-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ export function getDefaultConfig() {
* Floats
* @see https://tailwindcss.com/docs/float
*/
float: [{ float: ['right', 'left', 'none'] }],
float: [{ float: ['right', 'left', 'none', 'start', 'end'] }],
/**
* Clear
* @see https://tailwindcss.com/docs/clear
*/
clear: [{ clear: ['left', 'right', 'both', 'none'] }],
clear: [{ clear: ['left', 'right', 'both', 'none', 'start', 'end'] }],
/**
* Isolation
* @see https://tailwindcss.com/docs/isolation
Expand Down
1 change: 1 addition & 0 deletions tests/tailwind-css-versions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ test('supports Tailwind CSS v3.4 features', () => {
'forced-color-adjust-auto',
)
expect(twMerge('appearance-none appearance-auto')).toBe('appearance-auto')
expect(twMerge('float-start float-end clear-start clear-end')).toBe('float-end clear-end')
})

0 comments on commit 2c0da8c

Please sign in to comment.