CRM-14854. Highlight the selected price, not everything in that row.
authorChris Burgess <chris@giantrobot.co.nz>
Fri, 13 Jun 2014 04:39:12 +0000 (16:39 +1200)
committerChris Burgess <chris@giantrobot.co.nz>
Fri, 13 Jun 2014 04:39:12 +0000 (16:39 +1200)
css/civicrm.css
templates/CRM/Contribute/Form/Contribution/Main.tpl

index 4ba2d272051590e0adc2397e2bdc4373799c0d9e..3e9bcd386832b3a13ea19a7c355fd15f2b8ad8fe 100644 (file)
@@ -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;
 }
 
index dfd3d1909903179cd22a9f8864e5dab74b9d5671..f628a06837e4e9315ed2ea418e9d18e108af0a4f 100644 (file)
   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();