79373179

Date: 2025-01-21 04:16:28
Score: 1
Natty:
Report link

I tried to change css with z-index property, but that didn't work, so. I have mi Select in an atom component with:

const variant = {
    control: (baseStyles) => ({
        ...baseStyles,
        border: '2px solid gray',
        color: 'black',
        fontSize: '15px'
    }),
    menu: (basesStyles) => ({
        ...basesStyles,
        zIndex: 9999
    })
}

I use this code style for styles propoerty from Select:

return (
    <div className="form-group">
        <Select
            id={name}
            name={name}
            styles={variant} />
    </div>
)

Good day!

Reasons:
  • Blacklisted phrase (1): Good day
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bein