-
Notifications
You must be signed in to change notification settings - Fork 0
refacto: token-driven button variants, radius tokens & DRY component rendering #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5e9bddb
3e4114a
c83e13e
e58a15a
f3600df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,12 +45,14 @@ $am-dark-link: $am-color-primary !default; | |
| color: $am-color-button-text !important; | ||
| } | ||
|
|
||
| // Keep the secondary variant's color — the primary rule above would erase it. | ||
| // Restore the secondary fill AND text — the primary rule above forces button-text, | ||
| // which would be unreadable on an outline (light) secondary fill. | ||
| .button.secondary table td, | ||
| .button.secondary a, | ||
| .cta.secondary table td, | ||
| .cta.secondary a { | ||
| background: $am-color-secondary !important; | ||
| color: $am-button-secondary-color !important; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dark mode overrides info box tokensMedium Severity Dark-mode panel rules apply Additional Locations (1)Reviewed by Cursor Bugbot for commit f3600df. Configure here. |
||
| } | ||
|
|
||
| // Panels keep their inline background unless overridden here, which would | ||
|
|
@@ -111,6 +113,7 @@ $am-dark-link: $am-color-primary !default; | |
| [data-ogsc] .cta.secondary table td, | ||
| [data-ogsc] .cta.secondary a { | ||
| background: $am-color-secondary !important; | ||
| color: $am-button-secondary-color !important; | ||
| } | ||
|
|
||
| [data-ogsc] .callout-inner, | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dark mode ignores secondary_text
High Severity
Dark-mode rules force secondary
.cta/.buttonlink text to$am-button-secondary-color, which is aliased tobutton_text, not thesecondary_textcolor token. Token-driven outline secondaries inline a darksecondary_textcolor, but!importantstylesheet rules override it—often yielding light-on-light text whensecondaryis a light fill.Additional Locations (2)
app/assets/stylesheets/activemail/_settings.scss#L18-L19app/assets/stylesheets/activemail/_dark.scss#L115-L116Reviewed by Cursor Bugbot for commit f3600df. Configure here.