question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Background of options is transparent

See original GitHub issue

Background of options is transparent

transparent -select

<div  className="col-xs-12 col-sm-12 col-md-6 col-lg-6 m-b-15" style={{paddingTop: 26,backgroundColor:'#fff'}}>
                                    <Select value={this.state.parentComboValue} name={this.state.parentComboLabel} onChange={(event) => {

                                        this.setState({
                                            parentComboValue: event.value,
                                            parentComboLabel: event.label
                                        })
                                    }} options={this.state.parentCombo} clearable={false} style={{backgroundColor:'#fff'}}>

                                    </Select>
                                    <text className="errorColor">{this.state.parentComboError}</text>
                                </div>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

41reactions
devjonescommented, Oct 9, 2018

For version 2, you need to style the menu component

    const selectStyles = {
      menu: base => ({
        ...base,
        zIndex: 100
      })
    };

Then you can reference the Select component via:

<Select styles={selectStyles}>
5reactions
AlessandroAnninicommented, Feb 8, 2018

@AtulKondekar I think I have the solution: you only need to override the .Select-menu-outer z-index property with the value you need. Currently z-index in that class is 1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS for Select Option to be transparent background
I want to create this select - option background being transparent. I've read many result at google to use select option at CSS, ......
Read more >
Fixing <select> styles with transparent background
When you use a transparent background on <select> , browsers insert a white background on the drop-down. · But this can be easily...
Read more >
Make a picture's background transparent or opaque in Publisher
Click Picture Tools > Recolor > Set Transparent Color. In the picture, click the color you want to make transparent. Notes: The Set...
Read more >
background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an ... 50% transparent */ /* HSL value */ background-color: hsl(50, 33%, ...
Read more >
How to use transparent background - Canva
How to effectively use transparent backgrounds in graphic design · 01. Simplify a Busy Background · 02. Make Text More Visible · 03....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found