-
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 Are the Key Qualities to Look for When Hiring Salesforce Consultants in India?
In the dynamic landscape of business, Salesforce has emerged as a pivotal platform for companies seeking to streamline their operations, enhance customer relationships, and drive…
The Most Awaited Feature “List Contains” is Now Available – Spring’18
Yes, you heard it right! Now no more replicating List to Set. You can directly use contains over List. Salesforce Spring ’18 Release contains(listElement): Same…
How to Send and Receive Data from Web Services
Web Services are the best part of Salesforce Development through which one can able to make the code available on the network for use. Through…
Popular Salesforce Videos
How To: Build A Salesforce Career with This Tool!
Timecodes 0:00 - Intro & Overview 0:57 - Talent Stacker 3:00 - Career Progression 10:08 - Flow is the Future 13:36 - Learn More/Outro If…
Welcome to the New World of Data Collection | Salesforce
Secure data collection built for your needs. With FormAssembly, your organization can streamline outdated processes and power important business initiatives. Click the link below to…
Is Trailhead enough to crack Salesforce Interview?
In this video, Shrey answered one of the most asked questions related to Salesforce Interview. Let's see how beautifully Shrey answered this Question. We hope…