Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

667
Views
cambiar el color en el material ui select no funciona, ReactJS

Tengo el siguiente código:

 const useStyles = makeStyles({ select: { '&:before': { borderColor: 'white', }, '&:after': { borderColor: 'white', }, '&:not(.Mui-disabled):hover::before': { borderColor: 'white', }, }, icon: { fill: 'white', }, root: { color: 'white', }, }) const classes = useStyles(); return ( <Box sx={ { width: '20%', height: '21%', position: 'relative', bottom: '15px', borderRadius: '10px', padding: '2px', color: 'white', outline: 'white' }}> <FormControl fullWidth > <InputLabel id="demo-simple-select-label" style={{color: 'white', borderColor: 'white'}}>Cidade</InputLabel> <Select labelId="demo-simple-select-label" id="demo-simple-select" value={regiao} label="Região" onChange={e => (handleChange(e))} inputProps={{ classes: { icon: classes.icon, root: classes.root, }, }} > <MenuItem value={10}>Sao Paulo</MenuItem> </Select> </FormControl> </Box>

Pero no funciona. Mi aplicación de reacción parpadea cuando voy al lugar donde selecciono. ¿Cómo puedo cambiar la selección de color de MUI?

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

agregue estilo a su componente como:

 sx={{ '& .MuiTabs-indicator': { borderColor:'white' }, '& .MuiTab-root.Mui-selected': { borderColor:'white' } }}
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!