Skip to content

Commit

Permalink
final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinash Biradar committed Oct 24, 2023
1 parent c7f35a5 commit 6722224
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/box-shadow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ export function boxShadowGenerator(
const color = getShadowColor(attribute);
const getOutputElement = getOutput(attribute);
const resultPage = getResultPage();

const element = boxshadowInputs[0];
const value = element.value;

if (value.length < 3) {
getOpenSideBarButton().style.display = 'none';
}else{
} else {
getOpenSideBarButton().style.display = 'flex';
resultPage.style.display = 'flex';
}
Expand Down Expand Up @@ -153,7 +153,6 @@ export function addBoxShadowListener(): void {
allBoxShadowInputsFields[idx].textContent = `${input.value}px`;
}
input.addEventListener('input', () => {
if (color.value === '') return;
slideIn(preview, isSliderOpen);

isSliderOpen = true;
Expand Down

0 comments on commit 6722224

Please sign in to comment.