• Brennon Williams 5
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,

I'm using svg and use tags in a lightning component. I get the error:
 
Failed to save undefined: No COMPONENT named markup://use found

For the code: 
 
<svg aria-hidden="true" class="icon icon--large icon-standard-user">
                  			<use xlink:href="assets/icons/standard-sprite/svg/symbols.svg#user" />
                		</svg>

What am I doing wrong here?

Thanks!
Hi,

I'm trying to call the new Salesforce Design System CSS from within a .cmp file. No error is thrown, but Chrome logs "Resource interpreted as Stylesheet but transferred with MIME type application/zip"

I'm importing the CSS with:
 
<ltng:require styles="/resource/sds"/>

where 'sds' is the name of the Salesforce Design System folder. It might be worth noting the files are .scss, not .css. Changing styles to "/resource/sds/index.scss" doesn't solve it either. What am I doing wrong here?
Hi,

I'm using svg and use tags in a lightning component. I get the error:
 
Failed to save undefined: No COMPONENT named markup://use found

For the code: 
 
<svg aria-hidden="true" class="icon icon--large icon-standard-user">
                  			<use xlink:href="assets/icons/standard-sprite/svg/symbols.svg#user" />
                		</svg>

What am I doing wrong here?

Thanks!