Skip to content

Commit adcedb3

Browse files
authored
feat(card): overflow hidden on cover photo for swc implementation (#2661)
Adds overflow hidden to the .spectrum-Card-coverPhoto class, to help resolve an issue in the SWC implementation that uses sp-asset. In SWC the photo could appear from behind the corners of the card. For example, when increasing the corner rounding when setting the mod --mod-card-corner-radius. This issue is not visible in Spectrum CSS.
1 parent f0cdafe commit adcedb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/card/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ governing permissions and limitations under the License.
365365
var(--spectrum-card-preview-minimum-height)
366366
);
367367
box-sizing: border-box;
368+
overflow: hidden;
368369

369370
display: flex;
370371
align-items: center;

0 commit comments

Comments
 (0)