I am looking to customize the CSS of certain React classes in order to achieve a specific look for an input in a form. My goal is to have the input displayed as a straight line without any background color. Here is the CSS code I have been using:
.text-line {
background-color: transparent;
color: #eeeeee;
outline: none;
outline-style: none;
border-top: none;
border-left: none;
border-right: none;
border-bottom: solid #eeeeee 1px;
padding: 3px 10px;
}
I have attempted to add inline CSS and create custom classes, but neither method seems to be working as intended.
<Form>
<Form.Group controlId="formBasicEmail">
<Form.Label>Phone number, email or username</Form.Label>
<Form.Control type="email" placeholder="Enter email" onChange={this.handleUsernameChange} value={this.state.username} />
</Form.Group>
</Form>
Is there a way to cleanly override React's default CSS classes? I have also imported react-bootstrap using npm.