-
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
Organization Wide Default (OWD) Sharing Settings in Salesforce
In this blog, we will be discussing OWD. So, let's take a look at what OWD stands for, as we know that OWD stands for…
How to Become a Salesforce Developer? Here are the Tips to Consider
The certification and qualification of a Salesforce developer is a lengthy, rigorous task, but an incredibly fruitful one, nonetheless. It is one of the fastest…
Salesforce Summer '24 Release: Features Overview
Every Salesforce release introduces many updates and new features, enhancing the platform's efficiency and flexibility. These improvements benefit business users, developers, and administrators alike, enabling…
Popular Salesforce Videos
Learning Path and Pay Scale for Salesforce Profiles
Now it's high time to know about the Learning Path for the different Salesforce profiles. In this video, you also got to know about the…
Salesforce Multi-factor Authentication/Two-factor Authentication End User Training Video
Watch this video to learn all about Salesforce Multi-factor Authentication/Two-factor Authentication. This is a training video. Watch and learn.
3 Must-Have Validation Rules in Salesforce to Save Time and Avoid Costly Mistakes
Validation rules in Salesforce act like quality checks for your data. They help make sure that the data in your Salesforce org is accurate and…