Repository navigation
[Card/CardContainer] styles updates - #71
Conversation
colleenmcginnis
left a comment
There was a problem hiding this comment.
This change is ok with me, but we should make sure we bump dr-ui versions in all docs repos at the same time to make sure this pattern is consistent across all examples pages.
| const cardClasses = classnames('pb12 col col--12', { | ||
| 'col--6-mm': !props.fullWidthCards | ||
| const cardClasses = classnames('col col--12 mb36', { | ||
| 'col--6-ml': !props.fullWidthCards |
There was a problem hiding this comment.
Do you think we need to adjust the width of the images we're using in the cards if we're breaking at ml instead of mm?
There was a problem hiding this comment.
@colleenmcginnis from what I can tell from my testing, I don't believe we'll need to adjust the width of the images. Since the images are being rendered as background images with a background-size: 100% they should continue to stretch to fit the container
There was a problem hiding this comment.
Oh! Yes. I was thinkin' if the widest the div can be is going to be wider than it is now, then we might want to bump the width we're using in places like here. We can wait and see if the images look pixely. 😝
There was a problem hiding this comment.
Aha! I think we should be ok considering most pages that use this component also have a sidebar which takes up a lot of real estate. It's unlikely that an image will stretch beyond 800px, but let's keep an eye on it.
@colleenmcginnis that's a really good point, I'll add that as a to do on my end |
* master: [ExamplesPage] remove pt60 class (#70)
This PR makes a few subtle padding and style adjustments to
CardandCardContainer.Right now each card has padding that is revealed when hovered by the addition of a shadow. Unfortunately, this adds unused padding to the design and knocks the cards out of alignment with each heading:
The changes in this PR, removes the padding around each card and changes the hover interactive to a changing the card's hover text color blue:
I'd also like to make the images have rounded corners, but I suspect I'll need to PR the ability to pass props in https://github.com/mapbox/appropriate-imagesNevermind! We can passstyleto the element!