-
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
Introduction to Exception Handling in Salesforce Apex
Whenever you use a controller extension, extending a standard object, you can use the getRecord() to get the reference to the record. Most of us…
Event Management in Salesforce in 2024
How to Build a Robust Event Management System on Salesforce? Organizing events is a strategic business initiative with multifaceted benefits. From expanding professional networks to…
All You Need to Know About Creating Free Salesforce Developer Account
Are you struggling to create a Free Salesforce Developer Account? Do you think you could not find the right resources to guide you step-wise free…
Popular Salesforce Videos
Lightning Component Development - Applying Stylesheet, Create Basic Lightning Component
Welcome to Lightning Component Development Sessions. This is the initiative to help Salesforce Community in learning Lightning which we believe is future of Salesforce. Check…
4 Salesforce Implementation Challenges Faced by Enterprises
Let's have a look at some of the common challenges enterprises face while implementing Salesforce platform, if you need any help in implementing Salesforce from…
Salesforce Einstein Activity Capture Guide
Have you ever had issues maintaining accurate, up-to-date information between your Salesforce org and your clients? Einstein Activity Capture is here to work for you…