I am making use of navbar in my reactJS application. I use it to place a dynamic string to the right of the menu icon. I created a className to control the color of the text string and to limit the length of the string (since it is dynamic and I dont want it scrolling or running into the menu icon). I am able to limit the length in my new className but for some reason, the text color is not being applied. When I launch the application and make use of the developer tools, I look at the elements to see what css is being applied. I noticed that in the definition of my custom className, the text attribute has a line through it. So, for some reason, the browser has decided to not apply the color attribute. Here is a screen print of the page which shows the classNames that are in play here.
This is the HTML code that is executing:
<div className="planNameandMenu">
<nav className="navbar navbar-light">
<a className="navbar-brand jrsClass" href="#">{this.state.planName}</a>
<button className="navbar-toggler bg-light" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span className="navbar-toggler-icon"></span>
</button>
{this.renderMenu()}
</nav>
</div>
These are my custom classes:
.planNameandMenu {
background-color: #3B5796;
}
.jrsClass {
max-width: 225px;
overflow: hidden;
text-overflow: ellipsis;
color: #FFFFFF;
}
Thanks.

.navbar-light .navbar-brandhas a higher specifity than.jrsClass.navbarimported from library ? or it's your implementation from scratch ?