-
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
Six Amazing Features of Salesforce Lightning Dashboard
In the summer17 release, Salesforce has published a preview of its new features. There are lots of new features introduced in its new Lightning versions…
What are the top Salesforce Implementation and Consulting Partners for 2023?
Businesses are constantly improving their operations in order to maximize returns on investment. Salesforce CRM is the platform that provides the highest ROI. However, implementing it…
Best Practices in Salesforce to Write Test Classes for 100% Code Coverage
Introduction Test classes in Salesforce is an Apex Class that is used to test logics written in classes. We write Salesforce Test Classes for: Apex…
Popular Salesforce Videos
Streamline Sales Goals and Add Value to Your B2B Organization With Salesforce Marketing Automation
Salesforce Marketing Automation enables businesses to automate marketing processes, track customer engagement while delivering personalized experiences to each customer. With it, you can streamline and…
Salesforce Customer 360 - It Brings Your Company & Customers Together
Q: With a dispersed workforce, how do you bring all departments together with a single shared view of your customer? A: With Salesforce Customer 360.…
How to Connect to External Data | Salesforce
An external data source specifies how to access an external system. Salesforce Connect uses external data sources to access data that's stored outside your Salesforce…