From bc782741225e2e8247a7fc27fa34992051041a07 Mon Sep 17 00:00:00 2001 From: Chris Burgess Date: Fri, 13 Jun 2014 16:39:12 +1200 Subject: [PATCH] CRM-14854. Highlight the selected price, not everything in that row. --- css/civicrm.css | 4 ++-- templates/CRM/Contribute/Form/Contribution/Main.tpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/civicrm.css b/css/civicrm.css index 4ba2d27205..3e9bcd3868 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -4624,12 +4624,12 @@ span.crm-status-icon { color: #444444; } -#crm-container.crm-public .price-set-row.highlight label { +#crm-container.crm-public .price-set-row .highlight label { color: #000000; font-weight: bold; } -#crm-container.crm-public .price-set-row.highlight .crm-price-amount-label { +#crm-container.crm-public .price-set-row .highlight .crm-price-amount-label { color: #222222; } diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index dfd3d19099..f628a06837 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -453,8 +453,8 @@ CRM.$(function($) { // highlight price sets function updatePriceSetHighlight() { - cj('#priceset .price-set-row').removeClass('highlight'); - cj('#priceset .price-set-row input:checked').parent().parent().addClass('highlight'); + cj('#priceset .price-set-row span').removeClass('highlight'); + cj('#priceset .price-set-row input:checked').parent().addClass('highlight'); } cj('#priceset input[type="radio"]').change(updatePriceSetHighlight); updatePriceSetHighlight(); -- 2.25.1