Skip to content

Commit

Permalink
MNG-68-FixForFirstModeIndicator (#55)
Browse files Browse the repository at this point in the history
* Style button for first mode

* Style button for default mode

* Add hover for mode buttons
  • Loading branch information
mariusz-sm authored Jan 17, 2021
1 parent f0d5fdc commit 98485ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions src/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ export const App = ({options}) => {
}
});

// Change color of mode button
switch(SELECTED_MODE) {
case WHO_IS_THAT_POKEMON:
changeColorOfClickedButton('#whoIsThatPokemonOption');
break;
case WHAT_DOES_THIS_POKEMON_LOOK_LIKE:
changeColorOfClickedButton('#whatItLooksLikeOption');
break;
case WHO_IS_THAT_POKEMON_HARD_MODE:
changeColorOfClickedButton('#whoIsThatPokemonHardModeOption');
break;
}


//input (disabled "play" button when input name is empty)
const inputName = document.querySelector('#enterYourNameInput');
Expand Down
4 changes: 2 additions & 2 deletions styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ body {
}

.buttonWithText:hover {
background-color: var(--yellow);
color: var(--optionBlue);
background-color: var(--yellow) !important;
color: var(--optionBlue) !important;
}

.start-page {
Expand Down

0 comments on commit 98485ef

Please sign in to comment.