-
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
5 Latest Productivity Features by Salesforce: A Sigh of Relief for Sales Reps
Do you know that 66% of the sales reps invest their time into administrative tasks instead of working towards adding value to customers? This is…
How to Export Data from Salesforce to Excel and Backup Your Data On-Demand
Have you ever combatted with your data in Salesforce only to create a report and then export it to Excel? For an average user, it…
Best Practices to Implement Salesforce Marketing Cloud
The Marketing Cloud has all the requirements of a marketing department of a business such as data analysis, email, mobile, customer journey management, advertising, web personalization,…
Popular Salesforce Videos
Coronavirus Impact On Healthcare Sector – Time To Rejuvenate | Salesforce CRM
The Covid 19 has created an economic recession in the healthcare industry with disruption in healthcare services. The global healthcare CRM market is likely to…
Winter'22 updates for Salesforce Developers
Did you know most new features are included with your initial purchase? Explore the latest innovations in the release to maximize your ROI from Salesforce.…
Success Story of Vinay Shelke | From a Delivery Boy to Salesforce Consultant
Watch this video to get inspired by Vinay Shelke. Learn about his success story and about his journey of becoming a Salesforce Consultant from a…