Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshmishri committed Aug 2, 2024
1 parent 178a7ee commit 9e358df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
4 changes: 2 additions & 2 deletions blocks/image/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
display: flex;
}

.block.image img:not(.image--center img) {
.block.image img:not(.image.center img) {
width: 100%;
object-fit: cover;
}

.image--center picture {
.image.center picture {
justify-content: center;
}
9 changes: 2 additions & 7 deletions blocks/image/image.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import { variantsClassesToBEM } from '../../scripts/scripts.js';

const variantClasses = ['center'];
const blockName = 'image';

export default async function decorate(block) {
variantsClassesToBEM(block.classList, variantClasses, blockName);
export default async function decorate() {
// JS code
}
2 changes: 1 addition & 1 deletion blocks/text/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
max-width: 750px;
}

.text--center > div {
.text.center > div {
margin: auto;
}
9 changes: 1 addition & 8 deletions blocks/text/text.js
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
import { variantsClassesToBEM } from '../../scripts/scripts.js';

const variantClasses = ['center'];
const blockName = 'text';

export default async function decorate(block) {
variantsClassesToBEM(block.classList, variantClasses, blockName);
}
/* JS */

0 comments on commit 9e358df

Please sign in to comment.