Skip to content

Commit

Permalink
Update image file name from day/night to dark/light.
Browse files Browse the repository at this point in the history
fixes #138
  • Loading branch information
KendallDoesCoding committed Aug 20, 2022
1 parent c875688 commit 4342ead
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ let isLight = true;

const updateMode = () => {
isLight
? (slider.style.backgroundImage = "url('./images/day.png')")
: (slider.style.backgroundImage = "url('./images/night.png')");
? (slider.style.backgroundImage = "url('./images/light.png')")
: (slider.style.backgroundImage = "url('./images/dark.png')");
const rootElement = document.body;
rootElement.classList.toggle("darkMode");
};
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ a:active {
background-color: gray;
-webkit-transition: 0.4s;
transition: 0.4s;
background-image: url("./images/day.png");
background-image: url("./images/light.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
Expand Down

0 comments on commit 4342ead

Please sign in to comment.