Make header "Let's Talk" CTA button green - #25
Conversation
Switch the .cta-button background from var(--primary) to var(--green) in app/styles/_header.scss and mirror the change in the committed app/static/css/app.min.css build artifact.
SummaryTwo CSS declarations changed, both saying the same thing: Verified independently, not taken from the PR body:
FindingsMinor
Nit
Test coverageNo test asserts the button colour, and none is requested here. SecurityNothing to flag. No secrets, credentials, workflow files, or auth paths touched; no user input reaches the change; the diff is two CSS declarations. VerdictAPPROVE — no blockers or majors. The change does exactly what was asked, and both files are consistent. Before merge: confirm |
|
This a hackathon test |
What changed
The
"Let's Talk"actionLinkin the top-right of the header (app/view/mod_header.R, classcta-button) now renders with a green background instead of the brand blue.app/styles/_header.scss—.header .right .cta-buttonbackground: var(--primary)→background: var(--green).app/static/css/app.min.css— the same single declaration updated in the committed Sass build artifact, so the change takes effect without requiring a localrhino::build_sass().Why
Requested via shinybot: change the header "Let's Talk" button to green through its CSS styling.
Notes on the approach
--green(#3a5a40, defined underbranding.colorsinconfig.ymland injected as a CSS variable bygenerate_css_variables()) was reused rather than hardcoding a hex value, keeping the button themeable like the rest of the app. The existingcolor: whitelabel is left as-is — white on#3a5a40is comfortably above WCAG AA contrast.app/static/css/app.min.csswas edited surgically (one declaration) rather than regenerated. The committed artifact is already stale with respect to the Sass sources — it contains a.logs-llm-placeholder imgrule that no longer exists inapp/styles/, and it was produced by a libsass-era compiler whose output formatting differs from current dart-sass. A full rebuild would therefore have buried this one-line change in a whole-file reformat plus unrelated rule removals. CI runsrhino::build_sass()on push, which regenerates the file from the SCSS source in any case.How it was tested
app/styles/main.scsswith dart-sass to confirm the SCSS is valid and emits.cta-button{background:var(--green);...}.rhino::test_r()) and Rhino linters could not be run in this environment:rhino,shiny,config,boxand the rest of the renv library are not installed. The change touches only CSS declarations and no R code, and the existing tests (tests/testthat/, plus a Cypress smoke test that only asserts the app starts) do not assert on button colors.🤖 Opened by the shinybot-bridge mediforce workflow, on behalf of a shinybot chat request.