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

[Modification Request] Add support to display pillars as cards #816

Open
seangolob opened this issue Nov 13, 2024 · 3 comments
Open

[Modification Request] Add support to display pillars as cards #816

seangolob opened this issue Nov 13, 2024 · 3 comments
Labels

Comments

@seangolob
Copy link

Hi PB team!

I have noticed several pages in production where there have been custom styles applied to make pillars look like cards.

Image

Currently, custom styles are applied to the Pillar wherever they are implemented to make them look like cards. Should this be a feature that is supported by Primer Brand so we can get consistency for these use cases?

Thank you for your fantastic work! 🙇

@danielguillan
Copy link
Contributor

danielguillan commented Nov 14, 2024

Hey Sean!

Thanks for bringing this up and for sharing all those references. Adding a background to pillars is definitely becoming a common pattern.

Historically, we aimed to create a visual distinction between Cards and Pillars by only adding a background to Cards. This approach clarifies that Cards are interactive elements, while Pillars are pirmarily static content. One key distinction is that Cards always link to another location, making the entire element clickable. In contrast, Pillars may have optional links, with only the link being clickable. A common feature of all the Pillar examples you've shared is that none include a link, which seems enough to reinforces this distinction.

Therefore, we might consider allowing a background for Pillars, but perhaps only when there is no link? @rezrah @jesussandreas, I would love to hear your thoughts on this.

@rezrah rezrah added the brand label Nov 18, 2024
@rezrah
Copy link
Collaborator

rezrah commented Nov 18, 2024

we might consider allowing a background for Pillars, but perhaps only when there is no link?

That seems like a reasonable compromise. However, adding support for a background could make it even harder to distinguish Pillars from Cards, and would create confusion about their intended purposes.

When I look at this 👇, my instinct is that it's a Card and I try to hover + click on it because it looks so similar to the cards further down the page.

Image

If we do this, can it be done in a way that clearly differentiates the Pillars and Cards to avoid confusion and help users know which one to use in different use-cases? Alternatively, maybe we just consolidate the patterns if there is no real difference anymore from a Site Design perspective cc. @jesussandreas @simmonsjenna

@simmonsjenna
Copy link

simmonsjenna commented Nov 18, 2024

@rezrah bringing this over to the issue from Slack:

I checked with @jesussandreas , and he agrees we can consolidate them.

If we consolidate them, then pillars as they currently exist will become:
- Standard Pillars with no background ➡️ Cards with no background and no link (static; no hover effects)
- Pillars with a background ➡️ Cards with a background and no link (static; no hover effects)

Does that sound right? Or is there another use case I am missing?

This was discussed in Primer Brand OH this week. Consolidating the two would take too much work, and pillars are still functionally different enough to keep as a separate component. @jesussandreas will follow up with updated designs for pillars that use backgrounds so they are more visually differentiated from cards so they are not mistaken for card links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants