Skip to content

Commit

Permalink
fix(styles): added prefix uc- to className in the js (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
egordidenko authored Jul 16, 2024
1 parent 2b09d57 commit 672c5c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions blocks/CloudImageEditor/src/elements/slider/SliderUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion blocks/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 672c5c3

Please sign in to comment.