Skip to content
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

fix(card): force dk theme dk section card bg color #4913

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

srambach
Copy link
Member

@srambach srambach commented Jun 17, 2022

Previous PR #4889 changed the box shadow of cards on dark background. However, design would like all cards on a dark section to have the same background.

@mceledonia In some cases, the pf-m-non-selectable-raised card is a different color. Is this the desired result? They are a different color in the normal (light) theme.

@srambach
Copy link
Member Author

Screenshots:
2022-06-17_11-40-59

2022-06-17_11-41-49

2022-06-17_11-42-40

2022-06-17_11-43-06

2022-06-17_11-43-38

@patternfly-build
Copy link

patternfly-build commented Jun 17, 2022

@mceledonia
Copy link

@srambach I see now, I didn't make the connection that the different background color was specifically for the non-selectable state when amongst selectable cards. This makes a lot more sense now!

@@ -10,4 +11,8 @@
--pf-c-card--m-selectable-raised--focus--BoxShadow: var(--pf-global--BoxShadow--lg);
--pf-c-card--m-selectable-raised--active--BoxShadow: var(--pf-global--BoxShadow--lg);
}

.pf-c-page__main-section[class*="pf-m-dark-"] .pf-c-card {
Copy link
Contributor

Choose a reason for hiding this comment

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

This has the potential of styling cards we don't intend on styling, like if they're used in some other component and not directly against the background color of the main section. That said, I hadn't made any sort of considerations for the .pf-m-dark- page section backgrounds with the dark theme work, so I wonder how often they're used and if this is likely to even be a problem.

@srambach
Copy link
Member Author

New screenshots with different section variants.
image

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.

LGTM!

@mcoker mcoker merged commit 7717285 into patternfly:main Jun 22, 2022
@patternfly-build
Copy link

🎉 This PR is included in version 4.201.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@srambach srambach deleted the dk-card-dk-section-bg branch April 6, 2024 01:25
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.

None yet

4 participants