in my angular component I have the need to dynamically change the border-color of the:hover pseudo class of one item.
The color is found in an object variable in the component but I can't figure out how to target the hover specifically.
In the TS component:
items = [
{ id: 0, color: "#ff4400" },
{ id: 1, color: "#faa73d" },
];
In the SCSS file:
.menuItem {
border-color: #fff;
&:hover {
}
}
So basically I'd like the color in the object to be dynamically applied only to the hover state and not the default one.
Thanks!