我正在使用mat-form-field和mat-icon,我希望当我在mat-form-field(mat-Input field)内单击或聚焦时,mat-icon颜色应该改变,而焦点输出mat-icon保持原来的颜色。(Stackblitz)see in this example & make changes inside
发布于 2019-04-02 20:52:39
您可以将以下样式添加到您的代码中,
.mat-focused .mat-icon {
color: red;
}https://stackoverflow.com/questions/55475124
复制相似问题