Skip to content

Commit

Permalink
Adds additional dismissal option for tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
clpetersonucf committed Oct 17, 2024
1 parent b1f966b commit 41052a3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
22 changes: 22 additions & 0 deletions src/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,28 @@ span.strong {
position: absolute;
bottom: 15px;
}

button.modal-close-x {
top: 15px;
right: 15px;
left: auto;
bottom: auto;
width: 1em;
height: 1em;

margin: 0;
padding: 0;

background: none;
border: none;
outline: none;

color: #000;

&:hover span:before, &:focus span:before {
color: #850000;
}
}
}

.select-wrapper {
Expand Down
3 changes: 2 additions & 1 deletion src/components/player/player-tutorial.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const PlayerTutorial = (props) => {
<p>Some questions may have hints. Press <span className='strong'>H</span> to play the hint if it's available.</p>
</div>
</div>
<button onClick={toggle} id="tutorial-ready-btn">I'm Ready</button>
<button className='modal-dismiss' onClick={toggle} id="tutorial-ready-btn">I'm Ready</button>
<button className='modal-close-x' onClick={toggle}><span className='icon icon-cross'></span></button>
</div>

<div className='modal-bg' onClick={toggle}>
Expand Down

0 comments on commit 41052a3

Please sign in to comment.