diff --git a/app/assets/javascripts/keyboard_navigation.js b/app/assets/javascripts/keyboard_navigation.js index 3377f4736e1..7ed5007a224 100644 --- a/app/assets/javascripts/keyboard_navigation.js +++ b/app/assets/javascripts/keyboard_navigation.js @@ -43,6 +43,13 @@ function handleContactInfoKeyDown(event, radioId, modifyDiv) { } } +$(document).on('keydown', '.plan-contact-info-alt', function (event) { + if (event.key === 'Enter' || event.key === ' ') { + event.preventDefault(); + document.getElementById($(this).data('contact-click-id')).click(); + } +}); + document.addEventListener('turbolinks:load', () => { // Use event propogation to handle `Enter` keydown events for HTML elements with the attribute `data-keydown-id`. // Using event propogation is mainly a workaround for FA Income pages, which load income forms by cloning dummy hidden forms. diff --git a/app/views/insured/families/_enrollment_refactored.html.erb b/app/views/insured/families/_enrollment_refactored.html.erb index aab712dd58a..abb9a6c0ad6 100644 --- a/app/views/insured/families/_enrollment_refactored.html.erb +++ b/app/views/insured/families/_enrollment_refactored.html.erb @@ -115,13 +115,13 @@ <%= render partial: "shared/plan_shoppings/sbc_link", locals: { plan: product, custom_css: false, hbx_id: hbx_enrollment.hbx_id } %> <% unless details_page %> @@ -141,15 +141,6 @@ - - <% else %>
">