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

180
Views
Issue in applying css on lightning:tab in Aura

I want to apply custom CSS on lightning:tab of lightning:tabset I tried using inline CSS, external CSS but there is no luck, I want a way to check below:

(Used to create tab section which is highlighted)

.THIS li:nth-child(2) {
    background-color: dodgerblue !important;
    color: white !important;
    height:1.5rem;
    cursor: no-drop !important;
    pointer-events: none;
    
}
.THIS li:nth-child(7) {
    background-color: dodgerblue !important;
    color: white !important;
    height:1.5rem;
    cursor: no-drop !important;
    pointer-events: none;
}

.THIS li:nth-child(12) {
    background-color: dodgerblue !important;
    color: white !important;
    height:1.5rem;
    cursor: no-drop !important;
    pointer-events: none;
}
.THIS li:nth-child(15) {
    background-color: dodgerblue !important;
    color: white !important;
    height:1.5rem;
    cursor: no-drop !important;
    pointer-events: none;
}

This worked, anyhow I need some other solution as I am getting tabs dynamically there can be "n" number of tabs. and updating the CSS on every tab insertion/deletion is Misery!

Please let me know if anyone has any solution

Many thanks in advance!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you have to use !important in your CSS, maybe your .css files are included in the wrong order. check the element/style section in your browser's developer tools and find the files that are overriding the style of your tables.

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!