From 03160716862e4fe72024bd0d498b1475b2e6bf99 Mon Sep 17 00:00:00 2001 From: Charlie Parker Date: Tue, 6 Aug 2024 16:38:38 -0400 Subject: [PATCH] bs4 fix sep focus tooltip (#4221) add focus tooltip, remove unneeded tooltip attrs for bs4 --- app/helpers/insured/families_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/helpers/insured/families_helper.rb b/app/helpers/insured/families_helper.rb index 9239d843bc8..14e24011504 100644 --- a/app/helpers/insured/families_helper.rb +++ b/app/helpers/insured/families_helper.rb @@ -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, @@ -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)