Skip to content

Commit 5a66c7f

Browse files
authored
Merge pull request #279 from RivianTrackr/compare-gold-accent
Use the gold brand accent on compare and review pages (v1.49.2)
2 parents 5637ef2 + c0586bd commit 5a66c7f

7 files changed

Lines changed: 22 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to the Rivian Tire Guide plugin will be documented in this f
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [1.49.2] - 2026-06-12
8+
9+
### Fixed
10+
- **Compare and tire-review pages now use the gold brand accent.** Both standalone templates overrode `--rtg-accent` to green (`#5ec095` / hover `#4ade80`), so best-value highlights, buttons, links, and focus states rendered green instead of amber. Accent is now `#fba919` / `#ffbe4a` like the rest of the site. Button text on gold was already dark (`#15130e`), so contrast is unaffected.
11+
- Kept semantically-green elements green now that the accent is gold: the review success toast pins to `#34c759` (system success) and the compare "Yes" feature checkmarks pin to `#4ade80` (matching the green-check / amber-best convention from the spec tables). The 3PMS/EV/studded category tags are unchanged.
12+
- Template text tokens aligned to spec: `--rtg-text-primary` `#e5e5e5 → #ece9e4` (warm), `--rtg-text-heading` `#ffffff → #f6f4f0`.
13+
714
## [1.49.1] - 2026-06-12
815

916
### Fixed

frontend/js/compare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function renderComparison(rows, indexes) {
253253
['UTQG', t => t[COL.utqg] || "None"],
254254
['3PMS Rated', t => {
255255
const v = (t[COL.threePms] || "").toLowerCase();
256-
return v === "yes" ? '<span style="color:var(--rtg-accent);font-weight:600">' + rtgIcon('check', 14) + ' Yes</span>' : 'No';
256+
return v === "yes" ? '<span style="color:#4ade80;font-weight:600">' + rtgIcon('check', 14) + ' Yes</span>' : 'No';
257257
}],
258258
], tires, best, n);
259259

frontend/js/compare.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/templates/compare.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434
?>
3535
<style>
3636
:root {
37-
--rtg-accent: #5ec095;
38-
--rtg-accent-hover: #4ade80;
37+
--rtg-accent: #fba919;
38+
--rtg-accent-hover: #ffbe4a;
3939
--rtg-bg-primary: #1e2126;
4040
--rtg-bg-card: #16191e;
4141
--rtg-bg-input: #3a3e45;
4242
--rtg-bg-deep: #121418;
43-
--rtg-text-primary: #e5e5e5;
43+
--rtg-text-primary: #ece9e4;
4444
--rtg-text-light: #f6f4f0;
4545
--rtg-text-muted: #a19e97;
46-
--rtg-text-heading: #ffffff;
46+
--rtg-text-heading: #f6f4f0;
4747
--rtg-border: #3a3e45;
4848
<?php if ( $rtg_css_vars ) echo $rtg_css_vars; ?>
4949
}

frontend/templates/tire-review.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@
9494
<?php wp_head(); ?>
9595
<style>
9696
:root {
97-
--rtg-accent: #5ec095;
98-
--rtg-accent-hover: #4ade80;
97+
--rtg-accent: #fba919;
98+
--rtg-accent-hover: #ffbe4a;
9999
--rtg-bg-primary: #1e2126;
100100
--rtg-bg-card: #16191e;
101101
--rtg-bg-input: #3a3e45;
102102
--rtg-bg-deep: #121418;
103-
--rtg-text-primary: #e5e5e5;
103+
--rtg-text-primary: #ece9e4;
104104
--rtg-text-light: #f6f4f0;
105105
--rtg-text-muted: #a19e97;
106-
--rtg-text-heading: #ffffff;
106+
--rtg-text-heading: #f6f4f0;
107107
--rtg-border: #3a3e45;
108108
--rtg-star-filled: #fba919;
109109
--rtg-star-user: #4ade80;
@@ -623,8 +623,8 @@
623623
}
624624
.rv-toast.visible { opacity: 1; transform: translateX(0); }
625625
.rv-toast-icon { flex-shrink: 0; }
626-
.rv-toast-success { border-left: 3px solid var(--rtg-accent); }
627-
.rv-toast-success .rv-toast-icon { color: var(--rtg-accent); }
626+
.rv-toast-success { border-left: 3px solid #34c759; }
627+
.rv-toast-success .rv-toast-icon { color: #34c759; }
628628
.rv-toast-info { border-left: 3px solid #60a5fa; }
629629
.rv-toast-info .rv-toast-icon { color: #60a5fa; }
630630

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rivian-tire-guide",
3-
"version": "1.49.1",
3+
"version": "1.49.2",
44
"private": true,
55
"description": "Interactive tire guide for Rivian vehicles — WordPress plugin",
66
"scripts": {

rivian-tire-guide.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: Rivian Tire Guide
44
* Description: Interactive tire guide for Rivian vehicles with filtering, comparison, and ratings.
5-
* Version: 1.49.1
5+
* Version: 1.49.2
66
* Author: RivianTrackr
77
* Text Domain: rivian-tire-guide
88
* Requires at least: 5.8
@@ -14,7 +14,7 @@
1414
exit;
1515
}
1616

17-
define( 'RTG_VERSION', '1.49.1' );
17+
define( 'RTG_VERSION', '1.49.2' );
1818
define( 'RTG_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
1919
define( 'RTG_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
2020
define( 'RTG_PLUGIN_FILE', __FILE__ );

0 commit comments

Comments
 (0)