Skip to content

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

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

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

Conversation

@Mash707
Copy link
Contributor

@Mash707 Mash707 commented Aug 22, 2025

Fixes #7386

@patternfly-build
Copy link
Collaborator

patternfly-build commented Aug 22, 2025

Copy link
Member

@srambach srambach left a comment

Choose a reason for hiding this comment

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

👍🏻 thanks!

Copy link
Contributor

@mcoker mcoker left a comment

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

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