Using the mat-selection-list
component, I have set up a list of contacts displayed through mat-list-option
:
https://i.sstatic.net/ri4lP.png
Currently, the background-color
changes when I click on a specific contact-name
(e.g. Graeme Swan), and it remains constant until I select another contact. However, I am looking to also change the text-color
, which should stay consistent until a new contact is clicked.
You can view the implementation on this StackBlitz link.