HTML:
<div className="bnt-status-container"> <button onClick={this.props.onClick} type={this.props.type} disabled={this.props.isDisabled}> <span className="text-container-span">{this.props.text}</span> <span className={this.props.centerButtonIcon} /> <span className={'btn-direction-icon ' + this.props.directionButtonIcon} /> </button> </div>
Description:
SCSS Style: div { .bnt-status-container { display: flex; width: 100%; height: auto; justify-content: center; button { display: flex; align-items: center; justify-content: center; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; font-size: 15px; background-color: $navy-blue; color: $white; width: 100%; height: auto; font-weight: bold; text-transform: uppercase; border: none; border-radius: 8px; padding: 5px; margin: 15px; height: 55px; cursor: pointer; outline: none; .off-duty-red-spot{ display: flex; flex-grow: 0; background-color: #ff0a0a; border-radius: 100%; border: 5px solid #ff0a0a; width: 24px; height: 24px; } .sleeper-yellow-spot{ display: flex; flex-grow: 0; background-color: rgb(253, 253, 152); border-radius: 100%; border: 5px solid rgb(253, 253, 152); width: 24px; height: 24px; } .driving-green-spot{ background-color: rgb(5, 247, 5); border-radius: 100%; border: 5px solid rgb(5, 247, 5); width: 24px; height: 24px; } .on-duty-spot{ background-color: rgb(247, 247, 247); border-radius: 100%; border: 5px solid rgb(5, 247, 5); width: 24px; height: 24px; } span { align-self: center; &.text-container-span{ // margin-left: 15px; flex-grow: 0; width: 129px ; text-align: left; margin-left: 6px; } &.btn-center-icon { } &.btn-direction-icon { margin-right: 6px; flex-grow: 0; font-size: 18px; width: 128px ; text-align: end; } } } } }
How it looks: