[SalesForce] Change color of popover in lighting:helptext

I'd like to change font color and background of popover of lighting:helptext.
I'm talking about this component:

<lightning:helptext content="Your Name will be your login name" />

I tried to apply slds class directly as the value of class attribute, but it only changes the icon. Is it possible to change the font color and background of popover?

Best Answer

You can change font color and background of lighting:helptext popover by overriding CSS style within yourComponent.css file.

For instance, in this case, we will get a popover with a red background and a gray text:

.THIS .slds-popover_tooltip, 
.THIS .slds-popover--tooltip {
    background: #FF0000; /* background color */
    color: #444444; /* text color */
}

But be careful as this approach will apply this style to all popovers on the page.