Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #1036510

    Hi
    The menu item you are using as a parent is a text separator and in demo its a menu type with active class.
    Use below code to apply the class on your menu item

    
    .navbar-default .navbar-nav > .active > .separator, .navbar-default .navbar-nav > .active > .separator:hover, .navbar-default .navbar-nav > .active > .separator:focus {
        color: #ffffff;
        background-color: transparent;
    }
    
    .navbar-default .navbar-nav > .active > .separator .caret,
    .navbar-default .navbar-nav > .active > .separator:hover .caret, .navbar-default .navbar-nav > .active > .separator:focus .caret {
        color: #ffffff;
      border-top-color: #ffffff;
        border-bottom-color: #ffffff;
    }

    Regards

    Mikhail Friend
    #1036533

    Thanks, Pankaj Sharma.
    It works.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Mikhail 7 years, 6 months ago.

The topic ‘Parent menu item don’t change color if the child item is active’ is closed to new replies.