-
CSS Style for ui:button in Salesforce Lightning Component non rendering
Hi All,
I followed the instructions in the Lightning Components Developer Guide for applying CSS to a ui:button in my Lightning component, but the style isn't showing up.
Here's the button in my component:
<ui:button label="Box Volunteer Folder" press="{!c.navigate}" class="btn" />
Here's the CSS:
.THIS.uibutton.btn {
background-color: #2574a9;
color: #fff;
padding: 10px 20px;
}I've also tried this with no success:
.THIS .uibutton.btn {
background-color: #2574a9;
color: #fff;
padding: 10px 20px;
}Thanks
Log In to reply.
Popular Salesforce Blogs
Salesforce App Development: Best Practices
One of the great things about Salesforce is its infinite customization options. Not only can you tailor it to suit your unique business needs but…
Technical Debt in Salesforce: A Primer
Technical debt in Salesforce is unavoidable as your business evolves — in many ways, it’s the cost of development. The longer you’ve been running Salesforce,…
How Can Customizing Salesforce Help Non-Profit Organizations?
Salesforce can support every industry sector, helping companies earn more profits and achieve business growth. But what about the non-profit sector? The good thing is…
Popular Salesforce Videos
Features of Salesforce Industries (Vlocity)
There are many features of Salesforce Industries that make it a one-stop solution for businesses. Salesforce Industries or Vlocity offers Omnichannel processes with lightning Web,…
Reason to Switch the Job | Future of Salesforce Job Market | Christopher A Hopper
Here is the Glimpse of Conversation with Christopher A Hopper on the topic "Reason to Switch the Job". This is the very first episode of…
Translate/Rename Custom Field Labels in Salesforce
Watch the short video instruction of how you can translate or rename custom field labels, fieldsets, buttons, etc. that come with installed managed packages in…