Arrow
It was initially an option, but it ended up relying on the presence of an arrow element. See arrow in style guide.
If you need to hide the arrow on a per-action basis, you can use the ActionView
content_for
method.
<%# app/views/layouts/hovercard.html.erb %>
<div class="shadow rounded p-2 bg-white border">
<% unless content_for(:hovercard_arrow) == false %>
<div data-hovercard-arrow></div>
<% end %>
<%= yield %>
</div>
<%# app/views/contact_hovercard/details.html.erb %>
<% content_for(:hovercard_arrow, false) %>
<div>
<h4><%= @article.title %></h4>
<p><%= @article.short_description %></p>
<%# ... %>
</div>
or with an instance variable:
class ArticleHovercard < ApplicationHovercard
def summary
@display_arrow = false
@article = params[:article]
end
end
<%# app/views/layouts/hovercard.html.erb %>
<div class="shadow rounded p-2 bg-white border">
<% unless @display_arrow == false %>
<div data-hovercard-arrow></div>
<% end %>
<%= yield %>
</div>