• Ryan G
  • NEWBIE
  • 0 Points
  • Member since 2016

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

This is more of an FYI post and for those of you who have not noticed it yet. The developer console comments in component markups interers with the SLDS classes with "--" in the class name.

Temporary solution - Change/remove all the "--"'s from the class name in the markup for the code you are trying to comment.

Example:
The below code cannot be commented with <!-- code -->
<div class="slds-spinner--inverse slds-spinner slds-spinner--large" aria-hidden="false" role="alert">
You will need to remove the "--" from the class name inorder for the comment to work in dev console.
<!-- changed "--inverse" to "-inverse" and "--large" to "-large"
  <div class="slds-spinner-inverse slds-spinner slds-spinner-large" aria-hidden="false" role="alert">
-->
Cheers!
  • August 31, 2016
  • Like
  • 1
Hi Folks,

This is more of an FYI post and for those of you who have not noticed it yet. The developer console comments in component markups interers with the SLDS classes with "--" in the class name.

Temporary solution - Change/remove all the "--"'s from the class name in the markup for the code you are trying to comment.

Example:
The below code cannot be commented with <!-- code -->
<div class="slds-spinner--inverse slds-spinner slds-spinner--large" aria-hidden="false" role="alert">
You will need to remove the "--" from the class name inorder for the comment to work in dev console.
<!-- changed "--inverse" to "-inverse" and "--large" to "-large"
  <div class="slds-spinner-inverse slds-spinner slds-spinner-large" aria-hidden="false" role="alert">
-->
Cheers!
  • August 31, 2016
  • Like
  • 1