MDBSelect color doesn't work

web
mobile

Topic: MDBSelect color doesn't work

cntfriends pro premium asked 3 months ago

Expected behavior Text is green

Actual behavior enter image description here Resources (screenshots, code snippets etc.) My render method:

render() {
    return (
        <div>
            <MDBSelect
                options={this.state.options}
                label="Municipality"
                value={this.state.value}
                getValue={this.handleChange}
                color="green"
            />
        </div>
    );
}

Piotr Glejzer staff answered 3 months ago

Hi,

Green is not a color available in our basic palette colors. You can use : 'primary', 'secondary', 'warning', 'success', 'dark', 'info', 'default' to change color.

Best,
Piotr


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: React
  • MDB Version: 4.22.0
  • Device: pc
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No