Skip to content

fix(card): added missing body color variable#7756

Open
Mash707 wants to merge 2 commits into
patternfly:mainfrom
Mash707:card-undefined-color-variable
Open

fix(card): added missing body color variable#7756
Mash707 wants to merge 2 commits into
patternfly:mainfrom
Mash707:card-undefined-color-variable

Conversation

@Mash707

@Mash707 Mash707 commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Fixes #7386

@patternfly-build

patternfly-build commented Aug 22, 2025

Copy link
Copy Markdown
Collaborator

@srambach srambach left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍🏻 thanks!

@mcoker mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great, but since this is changing the card body's text color from inherit to our default color, and cards are used quite a bit, would you mind adding inherit as a fallback for the body text color to give users a way to revert this change in case they were relying on inherit?

color: var(--#{$card}__body--Color);

If you chnage that to color: var(--#{$card}__body--Color, inherit); then someone can revert this change by setting --#{$card}__body--Color: initial;.

@Mash707 Mash707 requested a review from mcoker August 28, 2025 19:28
@github-actions

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had activity in the last 60 days.

@github-actions github-actions Bot added the Stale label Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - Card - Undefined color variable

4 participants