-
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
On Cloud Shoes On Cloudsurfer: Ride the Wave of Innovation
On Cloud Shoes On Cloudsurfer: Ride the Wave of InnovationDiscover the Performance of On Cloud Shoes In the ever-evolving world of running footwear, On Cloud…
The Conflict of Cloud CRM System: Salesforce Vs Oracle
The growth in demand for cloud services technologies in recent years has been noticeable. As businesses increasingly invest in cloud computing technology, it has become…
Salesforce Consulting Services: What Does a Salesforce Administrator Do?
It is evident from the fact that any given technology can bring laurels to a company. Not only this, but it can also brighten job…
Popular Salesforce Videos
Salesforce Einstein Keynote: Meet Your Smart CRM Assistant
Salesforce Einstein is your smart CRM assistant, making your employees smarter and your customers happier. With Einstein, everyone has an AI-powered assistant to help them…
Understanding Salesforce Field Service Mobile App - An Overview | AblyPro
Field Service mobile app is an all-in-one tool designed for today’s mobile workforce. Salesforce Field Service Mobile App is an innovative tool designed to help…
5 Steps to Faster Case Resolution | Salesforce Support
When it comes to filling out a Salesforce case from, the description field and attached files are key to fast routing and resolution. Here are…