Skip to content

Commit ff6aaf0

Browse files
authored
Merge pull request #22 from gjtorikian/line-clampdown
Fix display removal when preceding line-clamp
2 parents 303fedf + 241a629 commit ff6aaf0

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/tailwind_merge/config.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,7 @@ module Config
17351735
"fvn-figure" => ["fvn-normal"],
17361736
"fvn-spacing" => ["fvn-normal"],
17371737
"fvn-fraction" => ["fvn-normal"],
1738+
"line-clamp" => ["display", "overflow"],
17381739
"rounded" => [
17391740
"rounded-s",
17401741
"rounded-e",

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.9.0"
4+
VERSION = "0.9.1"
55
end

test/test_conflicts_across_class_groups.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,8 @@ def test_touch_classes_do_create_conflicts_correctly
3434
assert_equal("touch-pan-x touch-pan-y touch-pinch-zoom", @merger.merge("touch-manipulation touch-pan-x touch-pan-y touch-pinch-zoom"))
3535

3636
assert_equal("touch-auto", @merger.merge("touch-pan-x touch-pan-y touch-pinch-zoom touch-auto"))
37+
38+
assert_equal("line-clamp-1", @merger.merge("overflow-auto inline line-clamp-1"))
39+
assert_equal("line-clamp-1 overflow-auto inline", @merger.merge("line-clamp-1 overflow-auto inline"))
3740
end
3841
end

0 commit comments

Comments
 (0)