Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add rounded borders to product images on TT4 #11447

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}

img {
border-radius: inherit;
height: auto;
width: auto;
max-width: 100%;
Expand All @@ -24,6 +25,11 @@
border: 1px solid $image-placeholder-border-color;
}
}

// Theme-specific CSS
.theme-twentytwentyfour & {
border-radius: var(--wp--preset--spacing--20);
}
}
.edit-post-visual-editor .editor-block-list__block .wc-block-grid__product-title,
.editor-styles-wrapper .wc-block-grid__product-title,
Expand Down
5 changes: 5 additions & 0 deletions assets/js/atomic/blocks/product-elements/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
margin: 0;
}
}

// Theme-specific CSS
.theme-twentytwentyfour & {
border-radius: var(--wp--preset--spacing--20);
}
}

.is-loading .wc-block-components-product-image {
Expand Down
5 changes: 5 additions & 0 deletions assets/js/blocks/featured-items/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,9 @@
.wp-block-button.aligncenter {
text-align: center;
}

// Theme-specific CSS
.theme-twentytwentyfour & {
border-radius: var(--wp--preset--spacing--20);
}
}
Loading