Make header "Let's Talk" button green - #28
Open
davidrsch wants to merge 1 commit into
Open
Conversation
Use the themed --green color from config.yml branding for the .cta-button background instead of --primary.
Author
SummaryTwo-token diff, exactly matching the request. Verified locally:
FindingsMinor
Nit
VerdictAPPROVE — no blockers, no majors. The two minors are follow-ups, not merge gates. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
.cta-button(the "Let's Talk"actionLinkin the top-right of the header) now uses the themed green background instead of the primary blue.app/styles/_header.scss:.header .right .cta-buttonbackground changed fromvar(--primary)tovar(--green).app/static/css/app.min.css: corresponding token updated in the committed compiled stylesheet.Why
Requested via shinybot chat: the header CTA should appear green.
var(--green)(#3a5a40, defined underbranding.colorsinconfig.ymland emitted as a CSS custom property bygenerate_css_variables()) was used rather than a hardcoded color, so the button stays consistent with the config-driven theming added in #15 and remains overridable per deployment. The existing white label text keeps a strong contrast ratio (~8:1) on that green.How it was tested
No automated test covers button styling (the R tests cover utils; the Cypress suite only asserts the app starts), and the app itself couldn't be launched here —
rhino/renvpackages are not installed in this environment.Verification done instead: compiled
app/styles/main.scsswithsass --style=compressedbefore and after the change and diffed the output — the only difference is.header .right .cta-button{background:var(--primary)}→{background:var(--green)}, which matches the one-token edit made to the committedapp.min.css. (The compiled file was originally built with an older sass version, so it was patched surgically rather than fully regenerated, to avoid unrelated minifier churn; CI'srhino::build_sass()regenerates it either way.)🤖 Opened by the shinybot-bridge mediforce workflow, on behalf of a shinybot chat request.