We already have button styling at the top levl. Use it for consistency.
border-color: #e67e22;
}
-.join-btn {
- background: #3498db;
- border: 2px solid #3498db;
- color: white;
- font-size: 1.1em;
- padding: 0.5em 1.5em;
-}
-
/* Bag button */
.bag-btn {
display: inline-flex;
url={state.game_info.url} />,
!state.joined ? (
- <div key="join" className="controls">
- <button className="join-btn"
- onClick={() => this.join_game()}>
- Join Game
- </button>
- </div>
+ <button key="join"
+ onClick={() => this.join_game()}>
+ Join Game
+ </button>
) : null,
state.joined ? this.render_controls() : null,
color: white;
}
-.controls button.join-btn {
- background: #3498db;
- border: 2px solid #3498db;
- color: white;
- font-size: 1.1em;
- padding: 0.5em 1.5em;
-}
-
/* "Letter Rip" button appears inside the rack when all tiles are
placed and all words are valid. */
.letter-rip-btn {
) : null,
!state.joined && !state.game_over ? (
- <div key="join" className="controls">
- <button className="join-btn" onClick={() => this.join_game()}>
- Join Game
- </button>
- </div>
+ <button key="join" onClick={() => this.join_game()}>
+ Join Game
+ </button>
) : null,
state.joined && !state.game_over ? (