-
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

What is Salesforce Testing? – Guide, Process, Tools and Best Practices
Salesforce is the first cloud-based CRM solution in the world. Marc Benioff and Parker Harris founded it in March 1999. The purpose of developing this…

What Are The Benefits of A Salesforce Consulting Partner
Salesforce Consulting services help the organizations to fulfill their business needs by assisting them in projects like Salesforce implementation, data integration, customization, AppExchange, and many more.…

Here's How You Can Ease Operations for Your Non-Profit Organization: With a Salesforce Customer Portal
Salesforce's powerful customer portals give you the tools to keep your organization running efficiently and provide your members, donors, and customers with more self-service and…
Popular Salesforce Videos
Explore Record Triggered Flow | Learn Salesforce Lightning Flows | Flow Builder Videos
Creating or updating a record can trigger an auto-launched flow to make additional updates to that record before it's saved to the database. A record-triggered…
How to Get Experience as a Fresher in Salesforce World? | The Shrey Sharma Show
Want to start your career in the Salesforce industry? Watch this video by Shrey and learn how you can get experience as a Fresher in…
How to Find out Who Deleted a Record in Salesforce
Salesforce administrators can determine who deleted a record by looking at the Recycle Bin or querying for deleted records via API. Watch this video and…