Skip to content

Commit 0dd6f1a

Browse files
committed
Merge pull request #141 from shannonsans/winter-16
Fix usage of class and containerClass attributes
2 parents 219c8fa + 1fcdc60 commit 0dd6f1a

File tree

1 file changed

+3
-2
lines changed
  • site/resources/lightning-svg-icon-component-helper

1 file changed

+3
-2
lines changed

site/resources/lightning-svg-icon-component-helper/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,18 @@ export default (
8787
var size = component.get("v.size");
8888
var name = component.get("v.name");
8989
var classname = component.get("v.class");
90+
var containerclass = component.get("v.containerClass");
9091
var category = component.get("v.category");
9192
9293
var containerClassName = [
9394
prefix+"icon__container",
9495
prefix+"icon-"+category+"-"+name,
95-
classname
96+
containerclass
9697
].join(' ');
97-
var iconClassName = prefix+"icon "+prefix+"icon--" + size;
9898
component.set("v.containerClass", containerClassName);
9999
100100
var svgroot = document.createElementNS(svgns, "svg");
101+
var iconClassName = prefix+"icon "+prefix+"icon--" + size+" "+classname;
101102
svgroot.setAttribute("aria-hidden", "true");
102103
svgroot.setAttribute("class", iconClassName);
103104
svgroot.setAttribute("name", name);

0 commit comments

Comments
 (0)