Skip to content

Commit 5111843

Browse files
authored
Merge pull request #13 from gjtorikian/basis-spaces
Fix basis-auto and basis-full not being merged correctly
2 parents 4ca615c + c84a7fb commit 5111843

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/tailwind_merge/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ module Config
327327
# Flex Basis
328328
# @see https://tailwindcss.com/docs/flex-basis
329329
##
330-
"basis" => [{ "basis" => [SPACING] }],
330+
"basis" => [{ "basis" => SPACING_WITH_AUTO.call }],
331331
##
332332
# Flex Direction
333333
# @see https://tailwindcss.com/docs/flex-direction

lib/tailwind_merge/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module TailwindMerge
4-
VERSION = "0.7.1.2"
4+
VERSION = "0.7.2"
55
end

test/test_class_group_conflicts.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def setup
99

1010
def test_merge_classes_from_same_group_correctly
1111
assert_equal("overflow-x-hidden", @merger.merge("overflow-x-auto overflow-x-hidden"))
12+
assert_equal("basis-auto", @merger.merge("basis-full basis-auto"))
1213
assert_equal("w-fit", @merger.merge("w-full w-fit"))
1314
assert_equal("overflow-x-scroll", @merger.merge("overflow-x-auto overflow-x-hidden overflow-x-scroll"))
1415
assert_equal("hover:overflow-x-hidden overflow-x-scroll", @merger.merge("overflow-x-auto hover:overflow-x-hidden overflow-x-scroll"))

0 commit comments

Comments
 (0)