-
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
Salesforce Offers Artificial Intelligence To Ramp Up Small Businesses!
AI or Artificial Intelligence is here to stay and stay for quite a longer period than we might have apprehended. It continues to empower the…
Einstein Application and Licenses in Salesforce Sales Cloud in 2024
Einstein Lead Scoring Use AI to score your leads by how well they fit your company’s successful conversion patterns. Let your sales team prioritize their…
Popular Salesforce Videos
Stephen Merity - Really Quick Questions with a Salesforce Researcher
Stephen Merity is a senior research scientist working on deep learning in San Francisco with Salesforce Research via the MetaMind acquisition. He's been lucky enough…
Salesforce Sales Cloud Implementation
There are many things to take into consideration when developing and deploying a Salesforce Sales Cloud implementation that will take your business to the next…
Modern App Development On Salesforce - Communicate between LWC components Using Events
In this series, we will explore Modern App Development on the Salesforce platform, including Heroku. The live hands-on sessions will take you through the journey…