<rh-card>: borderless variant #1468
marionnegp
started this conversation in
Ideas
Replies: 2 comments
-
This sounds like a useful addition. I'm not sure this needs any code changes in RHDS. We can accomplish this with a single CSS rule (codepen) (ok, i guess it's really 3 rules if you desugar the nesting) rh-card.borderless {
&::part(container) { border: 0; }
&::part(header),
&::part(footer) { margin: 0; }
&::part(body) { margin-inline: 0; }
} I'd be in favour of documenting this as an approved pattern. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@coreyvickery, I'll make this a Figma component in a new branch of the RHDS library and let you know when it's ready. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A borderless version of card has come up as a need in several designs. The padding would be removed too.
Benefits:
Would there be any issues to creating this as a new variant or card pattern?
Beta Was this translation helpful? Give feedback.
All reactions