-
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
Easy Way to Integrate Salesforce CLI with Visual Studio Code
What is Salesforce CLI? Salesforce CLI is a command-line interface that simplifies development and builds automation when working together with your Salesforce org. Use it…
The New Salesforce Nonprofit Cloud: How To Upgrade?
You’ve decided to upgrade to the new Salesforce Nonprofit Cloud, designed to increase the impact of your organization by giving you modules to improve the…
Popular Salesforce Videos
How Big Was Salesforce Dreamforce 21 Park? Take a Walk.
This two-minute walk shows exactly how Salesforce Dreamforce 21 International Park was set up. See for yourself how big it is. Also, share your Dreamforce…
SALESFORCE LIGHTS: The Crown above San Francisco
Visible by more than 20 miles away, Jim Campbell's massive LED art installation on the crown of the Salesforce Tower premiered last week. Situated above…
App to Track Your Trailblazer Journey | Are you a Trailblazer? | Mini Project | Salesforce Tutorials
In this video I will create an App to track our Trailblazer Journey. You will find out if you are a Trailblazer by watching this…