My dilemma revolves around utilizing the Angular Material library for a drop-down navigation bar. The issue at hand is my desire to hover through the list, yet I am unable to tweak the style within HTML. Fortunately, I can easily make alterations in Chrome.
/* Class set by Angular Material itself */
button.mat-menu-item:hover {
width: 100%;
color: green;
}
<mat-menu #menu="matMenu">
<a href="https://google.com"><button mat-menu-item>Help</button></a>
<button mat-menu-item (click)="Logout()">Sign Out</button>
</mat-menu>
Despite attempting to implement this CSS styling, it fails to take effect. I experimented with applying a class, but unfortunately, that strategy also proved unsuccessful.