Skip to content

add grey variant to reveal and card#51

Open
KathrynmHansen wants to merge 6 commits intomainfrom
add-grey-varations-to-card-and-reveal
Open

add grey variant to reveal and card#51
KathrynmHansen wants to merge 6 commits intomainfrom
add-grey-varations-to-card-and-reveal

Conversation

@KathrynmHansen
Copy link
Contributor

@KathrynmHansen KathrynmHansen commented Mar 17, 2026

A/C from Design:

Grey is the primary color for the reveal
White is the primary color for the card
Adds grey variant to reveal and card component

The colors are actually set on the card, so the @Style in the reveal is being set to what the card components needs to be the correct color.

@mrotondo mrotondo temporarily deployed to cfa-ui-comp-review-pr-51 March 17, 2026 15:22 Inactive
@mrotondo mrotondo temporarily deployed to cfa-ui-comp-review-pr-51 March 17, 2026 15:25 Inactive
@mrotondo mrotondo temporarily deployed to cfa-ui-comp-review-pr-51 March 17, 2026 15:27 Inactive
case style
when :primary
"border-zinc-300 border rounded-md p-4 space-y-4"
when :grey
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't taken a look at this while change yet but wanted to give some quick feedback since I know code reviews are moving quickly! We should not put any color names or visual details (like "white" and "gray" in this PR) as parameters to the components. This is because once the components are themed, those variants will very likely no longer be the color they were in our wireframe theme, and the parameters won't make sense. Please rename all parameter values to be semantically meaningful, checking in with design if you need to. "primary"/"secondary" are a precedent we've used elsewhere, but if this represents some other distinction that's fine too, as long as it's semantic.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup that makes sense!! thank you for that feed back!

@mrotondo mrotondo temporarily deployed to cfa-ui-comp-review-pr-51 March 17, 2026 15:42 Inactive
@KathrynmHansen KathrynmHansen requested a review from mrotondo March 17, 2026 15:43
Copy link
Contributor

@mrotondo mrotondo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion that might clarify some naming, but looks good!

def initialize(summary_text:, icon: nil, style: :primary)
@summary_text = summary_text
@icon = icon
@style =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[dust] This is a little funky if you don't know the design context. Maybe consider renaming this instance variable to @card_style to clarify a bit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants