#mat-toolbar span inside of sub element is lower in v17 vs v13

3 messages · Page 1 of 1 (latest)

stable wren
#

can I make my component an ng-container
No, you can't. But you can change its CSS (display: flex, align-items: center) for example.
Also, Don't use routerLink on a span. Make it a link. Links are what we use on the web to navigate.

#

Well, if it's pure text, then it shouldn't have routerLink. If it has a routerLink, its goal is to navigate, so it should be a link.

#

Whether it's a logo or text doesn't matter. If it's used to navigate, it's a link. You're free to style it the way you want to with CSS. But respect the semantics of the web. That's important for accessibility and keyboard navigation.