OpenLiberty / iguides-common

Other
0 stars 0 forks source link

Add CSS style to highlight new text added in instruction button #300

Closed dmorgant closed 5 years ago

dmorgant commented 5 years ago

Added class .actionAddedText to main.scss which defines a dark blue color and sets the font weight to bolded (500).

.actionAddedText {    
  color: #1F242F;
  font-weight: 500;  
}

To use, add this class to a <span> surrounding the text that was added. For example: ....failureRatio=0.5, delay=5000, <span class='actionAddedText'>successThreshold=2</span>)</action>

This will cause the text within the <span> tag to be highlighted to show which part of the action button was updated.

image