-
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
Typical Stages of Salesforce Integration
The full version was originally published at Twistellar Delivering a seamless customer experience is a key element fuelling your business growth. Providing this kind of…
Re-energize Sales with Salesforce Einstein Analytics
It is imperative to say that data is driving the business world and helping us make critical decisions as it turns valuable data into actionable…
5 Ways to Measure Customer Feedback | Salesforce Guide
As obvious as it sounds, you can only sell a product that your customers want to buy. So collecting customer feedback is crucial to measure…
Popular Salesforce Videos
How relationship works in Salesforce?
In this video, following things have been explained: How to create relationships in Salesforce? What is the need of relationship between two objects in Salesforce?…
AMPscript Case Functions - Salesforce Marketing Cloud Functions in 5 minutes
Cameron Robert steps through how to use the Upper, Lower and Proper Case Functions in AMPscript. Cameron also takes a closer look at the ProperCase…
Salesforce For Beginners - Create Lookup , Master-Detail Relationship and Rollup Summary
Salesforce Administration tutorial which demonstrates how to create Lookup Relationship, Master-Detail Relationship and Rollups . Things to be learned from the video : How to…