Skip to content

Commit

Permalink
MWPW-146221 | LCP is seen high on huesat (#282)
Browse files Browse the repository at this point in the history
High LCP was seen for hue-sat marquee.
Resolves: MWPW-146221
  • Loading branch information
suhjainadobe authored May 7, 2024
1 parent 1181632 commit 2418e60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@
z-index: 2;
}

.interactive-enabled .step-slider-tray .layer.show-layer {
min-height: 205px;
}

.interactive-enabled .layer .gray-button {
position: absolute;
box-sizing: border-box;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,20 +284,20 @@ function getWorkFlowInformation(el) {
export default async function init(el) {
const workflow = getWorkFlowInformation(el);
if (!workflow.length) return;
const targetAsset = await getTargetArea(el);
if (!targetAsset) return;
const stepInfo = {
el,
stepIndex: -1,
stepName: '',
stepList: workflow,
stepConfigs: el.querySelectorAll(':scope > div'),
nextStepEvent: 'cc:interactive-switch',
target: targetAsset,
displayPath: 0,
openForExecution: Promise.resolve(true),
};
await handleNextStep(stepInfo);
const targetAsset = await getTargetArea(el);
if (!targetAsset) return;
stepInfo.target = targetAsset;
await renderLayer(stepInfo);
if (workflow.length === 1) return;
el.addEventListener('cc:interactive-switch', async () => {
Expand Down

0 comments on commit 2418e60

Please sign in to comment.