Skip to content

Commit

Permalink
Favor show_divider param over rendering actual divider.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamieshark committed Sep 3, 2024
1 parent e25e242 commit 692d02c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/primer/alpha/select_panel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<dialog-helper>
<%= show_button %>
<%= render(@dialog) do %>
<%= render Primer::Alpha::Dialog::Header.new(id: "#{@panel_id}-dialog", title: @title) do |header| %>
<%= render Primer::Alpha::Dialog::Header.new(id: "#{@panel_id}-dialog", title: @title, show_divider: show_filter?) do |header| %>
<% if subtitle? %>
<% header.with_subtitle do %>
<%= subtitle %>
Expand Down Expand Up @@ -41,7 +41,6 @@
position: :absolute
}
)) %>
<%= render(Primer::Alpha::ActionList::Divider.new(mb: 0)) %>
<% end %>
<% end %>
<% end %>
Expand Down

0 comments on commit 692d02c

Please sign in to comment.