Skip to content

Commit

Permalink
fix(esl-utils): clean IE11 micro-optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Apr 28, 2023
1 parent ad678cb commit 7ed8830
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions pages/src/landing/marquee/marquee.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {ESLBaseElement} from '../../../../src/modules/esl-base-element/core';
import {bind, ready, memoize, attr} from '../../../../src/modules/esl-utils/decorators';
import {range} from '../../../../src/modules/esl-utils/misc/array';
import {isIE} from '../../../../src/modules/esl-utils/environment/device-detector';

export class ESLDemoMarquee extends ESLBaseElement {
static override is = 'esl-d-marquee';
Expand All @@ -16,7 +15,6 @@ export class ESLDemoMarquee extends ESLBaseElement {
@ready
protected override connectedCallback(): void {
super.connectedCallback();
if (isIE) return;
this.startAnimation();
}
protected override disconnectedCallback(): void {
Expand Down
2 changes: 0 additions & 2 deletions src/modules/esl-alert/core/esl-alert.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "../../esl-utils/fixes/ie-fixes";

esl-alert {
display: flex;
justify-content: center;
Expand Down
3 changes: 0 additions & 3 deletions src/modules/esl-utils/fixes/viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ export class ESLVSizeCSSProxy {

/** Inits custom CSS variables for viewport sizes and it's observation */
public static observe(): void {
// IE doesn’t support CSS Variables (hopefully same as 100vh issue :D)
if (DeviceDetector.isIE) return;

this.update();
window.addEventListener('resize', this.updateDebounced);
}
Expand Down

0 comments on commit 7ed8830

Please sign in to comment.