Skip to content

Commit 3e82e4b

Browse files
author
Adam Raider
committed
fix(card): Fix border wrapping images on cards
1 parent 9255112 commit 3e82e4b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/ray/lib/_card.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
$card-padding: 1rem;
2-
$card-border-color: #e6e6e6;
2+
$card-border-color: $gray35;
33

44
.card {
55
width: 100%;
6-
border: 1px solid $card-border-color;
76
border-radius: $border-radius;
87
background-color: $white;
98
overflow: hidden;
109

1110
&__content {
1211
padding: $card-padding;
12+
border: 1px solid $card-border-color;
13+
14+
&:not(:first-child) {
15+
border-bottom-left-radius: $border-radius;
16+
border-bottom-right-radius: $border-radius;
17+
border-top: 0;
18+
}
1319
}
1420
}

packages/ray/lib/_image.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
height: auto;
55
position: relative;
66
overflow: hidden;
7-
background-color: $gray30;
7+
background-color: $gray35;
88

99
img {
1010
position: absolute;
@@ -31,7 +31,7 @@
3131
display: block;
3232
width: 100%;
3333
height: auto;
34-
background-color: $gray30;
34+
background-color: $gray35;
3535
background-size: cover;
3636
background-position: center;
3737
background-repeat: no-repeat;

0 commit comments

Comments
 (0)