From 672c5c3f15ce7bb54027ae2ba77217c3aa622824 Mon Sep 17 00:00:00 2001 From: Egor Didenko Date: Tue, 16 Jul 2024 12:37:45 -0400 Subject: [PATCH] fix(styles): added prefix uc- to className in the js (#700) --- blocks/CloudImageEditor/src/elements/slider/SliderUi.js | 6 +++--- blocks/Modal/Modal.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blocks/CloudImageEditor/src/elements/slider/SliderUi.js b/blocks/CloudImageEditor/src/elements/slider/SliderUi.js index 4548c34b2..88feacd66 100644 --- a/blocks/CloudImageEditor/src/elements/slider/SliderUi.js +++ b/blocks/CloudImageEditor/src/elements/slider/SliderUi.js @@ -140,8 +140,8 @@ export class SliderUi extends Block { let fr = document.createDocumentFragment(); let minorStepEl = document.createElement('div'); let borderStepEl = document.createElement('div'); - minorStepEl.className = 'minor-step'; - borderStepEl.className = 'border-step'; + minorStepEl.className = 'uc-minor-step'; + borderStepEl.className = 'uc-border-step'; fr.appendChild(borderStepEl); for (let i = 0; i < count; i++) { fr.appendChild(minorStepEl.cloneNode()); @@ -153,7 +153,7 @@ export class SliderUi extends Block { fr.appendChild(borderStepEl.cloneNode()); let zeroDotEl = document.createElement('div'); - zeroDotEl.className = 'zero-dot'; + zeroDotEl.className = 'uc-zero-dot'; fr.appendChild(zeroDotEl); this._zeroDotEl = zeroDotEl; diff --git a/blocks/Modal/Modal.js b/blocks/Modal/Modal.js index 1f06eb5c4..a15947568 100644 --- a/blocks/Modal/Modal.js +++ b/blocks/Modal/Modal.js @@ -65,7 +65,7 @@ export class Modal extends Block { } else { this.setAttribute('dialog-fallback', ''); let backdrop = document.createElement('div'); - backdrop.className = 'backdrop'; + backdrop.className = 'uc-backdrop'; this.appendChild(backdrop); backdrop.addEventListener('click', this._handleBackdropClick); }