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

194
Views
¿Existe la posibilidad de agregar nth-child para una variable de javascript? Necesito agregarlo al código mecanografiado.

ingrese la descripción de la imagen aquí

Esto está dentro de un archivo .tsx. La variable de estilos se aplica como styles={styles}

 var styles = { bmBurgerBars: { height: '10px', right: '20px' } //nth child for bmBars }

Probé el siguiente código pero no se está implementando en la interfaz de usuario

 var styles = { bmBurgerBars: { height: '10px', right: '20px', '&:nth-child(2)': { width: '80%', left: '7px', background: '#111' } } }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Suponiendo que está utilizando una biblioteca como Material UI (o similar/bifurcado), puede usar la siguiente especificación:

 var styles = { bmBars: { height: '10px', right: '20px', '&:nth-child(n)': { color: 'red' } } }
about 4 years ago · Juan Pablo Isaza 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!