mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Koenig - Use loose BEM naming for image style classes
refs https://github.com/TryGhost/Ghost/issues/9505
This commit is contained in:
parent
86c28e382e
commit
c50f60f8cd
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ module.exports = {
|
|||
let img = dom.createElement('img');
|
||||
let imgClass = 'kg-image';
|
||||
if (payload.imageStyle) {
|
||||
imgClass = `${imgClass} kg-image--${payload.imageStyle}`;
|
||||
imgClass = `${imgClass} kg-image-${payload.imageStyle}`;
|
||||
}
|
||||
img.setAttribute('src', payload.src);
|
||||
img.setAttribute('class', imgClass);
|
||||
|
|
Loading…
Add table
Reference in a new issue