Why do the four buttons at the bottom of this app not de-select after clicking on mobiles? They work correctly on desktop. I've been pulling my hair out trying to figure out what the deal is.
One interesting point. The Uber button is actually an link whereas the rest are s.
Here is the deployed app (final project for bootcamp): https://sipspot.herokuapp.com/
Here is the github repo: https://github.com/charlesmbrady/Project3
Please let me know if you have any ideas. Thanks in advance!
Here is the pertinent code with relevant CSS below it:
<div className="bottombar">
{ this.state.theCheckinLatitude === 0 ? (
<button className="cntrl-btn" data-test="controls-checkin" onClick={ this.checkIn }>CheckIn</button>
) : (
<button className="cntrl-btn" data-test="controls-checkin" onClick={ this.checkOut }>ChkOut</button>
) }
<button className="cntrl-btn" data-test="controls-drink" onClick={ this.drinkTracker }>+Drink</button>
<a id="uber-button" className="cntrl-btn" data-test="controls-uber" href="https://m.uber.com/ul/?action=setPickup&pickup=my_location" target="_blank" rel="noopener noreferrer">Uber</a>
<button id="friends-button" className="cntrl-btn" data-test="controls-friends" onClick={ this.contactFriends }>Friends</button>
</div>
CSS for the pertinent elements. The display:
items are the only bits I can imagine would have any impact on this problem.
.topbar>a, .topbar>button, .bottombar>a, .bottombar>button {
background-color: #121212;
color: white;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
display: inline-block;
display: -moz-inline-box;
width: 25%;
padding: 10px;
}