i want the nav bar to highlight the icon also

listLink.setHighlightCondition(HighlightConditions.sameLocation());

// css

a[highlight] {
/font-weight: bold;/
text-decoration: underline;
color: #1FB5AD;

/background-color:#1FB5AD;/
}

you’ll need to provide a lot more context and detail than that

Are you talking about the top navi bar in an app generated with start.vaadin.com?
image.png

yes

ok so I’m still going to need more detail about what you’re trying to accomplish. A picture maybe, or a description?