Skip to content

Commit fa0b940

Browse files
pierry01claude
andcommitted
feat(combobox): use single chevron-down icon in ComboboxTrigger
Aligns ComboboxTrigger with the base shadcn Combobox, which uses a single chevron-down affordance. ComboboxInputTrigger already renders chevron-down; this makes the default trigger consistent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent d15167c commit fa0b940

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

gem/lib/ruby_ui/combobox/combobox_trigger.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ def icon
5252
stroke_linejoin: "round"
5353
) do |s|
5454
s.path(
55-
d: "m7 15 5 5 5-5"
56-
)
57-
s.path(
58-
d: "m7 9 5-5 5 5"
55+
d: "m6 9 6 6 6-6"
5956
)
6057
end
6158
end

gem/test/ruby_ui/combobox_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ def test_combobox_badge_trigger_no_chevron
187187

188188
def test_combobox_trigger_chevron_down
189189
output = phlex { RubyUI.ComboboxTrigger(placeholder: "Pick") }
190-
assert_match(/m7 15 5 5 5-5/, output)
191-
assert_match(/m7 9 5-5 5 5/, output)
190+
assert_match(/m6 9 6 6 6-6/, output)
192191
end
193192

194193
def test_combobox_trigger_sets_placeholder_data

0 commit comments

Comments
 (0)