Skip to content

Commit

Permalink
bs4 fix sep focus tooltip (#4221)
Browse files Browse the repository at this point in the history
add focus tooltip, remove unneeded tooltip attrs for bs4
  • Loading branch information
charlienparker authored Aug 6, 2024
1 parent 9a0c5ba commit 0316071
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/helpers/insured/families_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def render_product_type_details(metal_level_kind, nationwide)
end

def qle_link_generator(qle, index)
options = {class: "qle-menu-item #{'pr-3' if @bs4}"}
options = {class: "qle-menu-item"}
data = {
title: qle.title, id: qle.id.to_s, label: qle.event_kind_label,
is_self_attested: qle.is_self_attested,
Expand All @@ -127,8 +127,7 @@ def qle_link_generator(qle, index)
}

if qle.tool_tip.present?
legacy_placement = index > 2 ? 'top' : 'bottom'
data.merge!(toggle: 'tooltip', placement: @bs4 ? 'right' : legacy_placement, trigger: 'hover')
data.merge!(toggle: 'tooltip', placement: index > 2 ? 'top' : 'bottom', trigger: "hover #{'focus' if @bs4}")
options.merge!(data: data, title: qle.tool_tip)
else
options.merge!(data: data)
Expand Down

0 comments on commit 0316071

Please sign in to comment.