I am trying to style a data-placeholder
in SCSS.
I want to change the color of data-placeholder
from the existing color to dark-grey but my attempts have not been successful, what am I missing? Code below
HTML5
<optic-select-input id="placeholder" class="dataplaceholder" data-placeholder="Choose or type subject..." title="Type your subject" ng-model="newMessage.Subject" data-maxlength="50" spellcheck="true">
SCSS
.dataplaceholder{
@include placeholder(#A9A9A9,"");
}
@mixin placeholder($color, $size:"") {
&:-data-placeholder{
color:$color !important;
@if $size != "" {
font-size: $size;
}
}
}