-
Notifications
You must be signed in to change notification settings - Fork 1
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
4.x - Create a card component #696
Comments
This article is the origin of the media object concept, which is the inspiration for the card component in UIDS (and HDS before that): http://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code/ We also had a fair amount of review of existing component libraries and discussion around the decisions we made about how to structure them, but that was all lost when the HDS repo was removed :( |
I think when we built the original card, we used Material Design as a bit of an inspiration. They have a new version now: https://m3.material.io/components/cards/overview Here is the original: https://material.io/components/cards |
Here is one change I would be interested in making in
|
Dropping this here for reference: https://getbootstrap.com/docs/5.2/components/card/#border. Bootstrap's cards have borders by default and don't seem to have a way to turn them off without overriding their styles, so this is not exactly the model we want to be following, but using a mixin to add border style options is something we could figure out how to do. (edit) Here is the section in the MD V3 guide on cards about the outline card: https://m3.material.io/components/cards/specs#9ad208b3-3d37-475c-a0eb-68cf845718f8 What I thought was interesting about this was the option to have a fill color and an outline. This is kind of similar to how we are doing buttons. |
Sean can share what work has been started with whoever takes this on. |
could be a good issue to pair/swarm |
Here are a couple changes that were suggested during conversation on Friday:
|
Capturing from our conversation about a path forward to get this first draft to a state we feel comfortable leaving it in.
|
Should we close this issue and create follow-up issues? |
Yes. |
Motivation
Create a card component to handle what we were using the card for in 3.x.
Proposed solution
How are we going to reference different card sub elements (media, title, details, etc.) style-choices?
Elements
.media--
classes.SizeShape/ Aspect RatioOutlineOptions
The text was updated successfully, but these errors were encountered: