Skip to content

Commit

Permalink
update class variant name
Browse files Browse the repository at this point in the history
  • Loading branch information
kesiah committed Dec 9, 2024
1 parent f3c2ac5 commit 13a751b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
grid-template-columns: repeat(auto-fill, minmax(257px, 1fr));
}

.cards--2-column & {
.cards--2-columns & {
@media (min-width: 768px) {
grid-template-columns: repeat(2, 1fr);
}
}

.cards--3-column & {
.cards--3-columns & {
@media (min-width: 768px) {
grid-template-columns: repeat(3, 1fr);
}
Expand Down
2 changes: 1 addition & 1 deletion blocks/cards/cards.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createOptimizedPicture } from '../../scripts/aem.js';
import { createElement, variantsClassesToBEM } from '../../scripts/common.js';

const variantClasses = ['2-column', '3-column'];
const variantClasses = ['2-columns', '3-columns'];

export default function decorate(block) {
const blockName = 'cards';
Expand Down

0 comments on commit 13a751b

Please sign in to comment.