Skip to content

Commit dcbb242

Browse files
authored
fix (posts block): featured image margin & title line-height won't apply (#2168)
Added a property for the title link and category link in styles.
1 parent 648f31b commit dcbb242

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/block/posts/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const getStyleParams = ( options = {} ) => {
243243

244244
// Spacing
245245
{
246-
selector: `${ itemSelector } .stk-img-wrapper`,
246+
selector: `${ itemSelector } .stk-block-posts__image-link`,
247247
styleRule: 'marginBottom',
248248
attrName: 'imageSpacing',
249249
format: '%spx',

src/block/posts/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
// Remove theme text decoration on links.
7777
&__title a,
7878
&__category a {
79+
display: inline-block;
7980
text-decoration: none;
8081
}
8182

src/block/posts/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const generateRenderPostItem = attributes => {
148148
? 'top'
149149
: 'bottom'
150150
}
151+
className="stk-block-posts__image-link"
151152
/>
152153
)
153154

0 commit comments

Comments
 (0)