Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 20830

Questions related to Lightning CSS Framework called Salesforce Lightning Design System or SLDS for short. Specifically questions on how to use, getting certain features to work, and questions related to any of the suggested code or use cases on the Lightning Design System Website: https://www.lightningdesignsystem.com/ Lightning Experience UI, Lightning Components, Visualforce, and Lightning App Builder are all different but related tags.

4 votes
Accepted

Dynamically Creating Icons in Lightning Design System

I was able to reproduce the issue just by dynamically creating a button which contains SVG tag inside it using javascript.Strangely the dynamic button markup while inspecting the element was same as t …
Praveen's user avatar
  • 10.1k
2 votes
Accepted

How to create "button" tag dynamically using $A.createComponent

you need to use aura:html to create a html tag dynamically using $A.createComponent. So to create a button tag below is how you do it: $A.createComponent( "aura:html", { "tag":"butto …
Praveen's user avatar
  • 10.1k
6 votes
Accepted

Add background border color for required field in Lightning Component

You could define a error class in your component and add the same when showing the error message. So when you do nameField.set("v.errors", [{message:"some message"}]);, error message is shown and act …
Praveen's user avatar
  • 10.1k
10 votes

Cannot get attribute value from <a> tag when <img> is an element of it

Due to event bubbling, when you click on the img tag anchor tag's onclick event is being fired. As a result, event.target => points to the element where the click originated which is the <img/>. So d …
Praveen's user avatar
  • 10.1k
4 votes

Lightning Design System - Large Buttons

Since there is no equivalent class modifiers like --large for slds-button,you have to add custom css to increase the button size in SLDS,like this: <style> .btn-lg{ height: 44px; …
Praveen's user avatar
  • 10.1k
0 votes

ui:inputDateTime Icons Are Not Formatted Correctly - How to Fix?

Setting width:95% to ui:inputDate or ui:inputDateTime will fix the icon alignment issue. markup: <ui:inputDateTime value="{!v.dateTimeVal}" class="slds-input dateIconFix" displayDatePicker ="true"/> …
Praveen's user avatar
  • 10.1k
5 votes
Accepted

$A.util.removeClass not working in some cases

Instead of doing things in init, try it in afterRenderer. Reason is that init is called long before DOM availability, which might cause a timing issue. Incase of afterRenderer it is called only after …
Praveen's user avatar
  • 10.1k
1 vote
Accepted

How to give image path in lightning salesforce?

if you are correctly referring the image(Koala.JPEG) which resides inside Koala(folder) which is inturn is inside assests(folder), then i think below statement might me the reason for the image loadin …
Praveen's user avatar
  • 10.1k
6 votes
Accepted

"No COMPONENT named markup://aura:method found" when saving component

You get the below error if the <aura:method/> is not an direct child of <aura:component/> No COMPONENT named markup://aura:method found” when saving component <aura:component> <div> <au …
Praveen's user avatar
  • 10.1k
7 votes

jQuery NiceScroll not working when Locker Service is active

When locker service is in place, the golden rule is: you cannot access the DOM of the components you do not own Why this is enforced? It is mainly to preserve the component encapsulation, so th …
Praveen's user avatar
  • 10.1k
1 vote

How to add circular images as an lightning component

you need to set the width and height of the image to override the slds's image css. ImageApp.app <aura:application > <ltng:require styles="/resource/SLDS202/assets/styles/salesforce-lightning-d …
Praveen's user avatar
  • 10.1k