• Nilakshi Asthana
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
WInter 19 had the following change:
The label attribute now supports text only. Previously the label supported a component type, and you could include, for example, an icon in the tab’s label. If you use a component in a lighting:tab label now, only the text portion of the label value displays. Any CSS classes that are applied are ignored.

The result is that I can no longer add classes to the tab. The following code no longer adds completed to the class attribute:
<lightning:tab id="Calendar" label="Calendar" class="{!v.CalendarHasSaved ? 'completed' : ''}">
Even if I have class="completed" it strips it out.

Why did they need to do this? I had styling that indicated whether a tab was 'complete' which no longer works.