Skip to content

Commit 1f24773

Browse files
committed
Add/Remove comments
1 parent 4423c94 commit 1f24773

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

blocks/promotion/promotion.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@
144144
font-size: 16px;
145145
}
146146

147-
/* overlay content */
148147
.promotion .rich-text-content{
149148
position: relative;
150149
z-index: 1;

blocks/promotion/promotion.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createOptimizedPicture } from '../../scripts/aem.js';
33
export default function decorate(block) {
44
const elements = [...block.children];
55

6+
// Order of elements:
67
const roleMap = {
78
0: 'desktop-image',
89
1: 'mobile-image',
@@ -11,7 +12,7 @@ export default function decorate(block) {
1112
};
1213

1314
elements.forEach((child, index) => {
14-
// Assign role (desktop/mobile) based on order
15+
// Assign role based on order
1516
const role = roleMap[index];
1617
if (role) child.classList.add(role);
1718

0 commit comments

Comments
 (0)