내가 개발하는 샘플에서 프로젝트 모 13 에서는 내가 사용되는 각 재료 테마입니다. 에서의 구성요소가 사용되는 재료에 대한 버튼 로그아웃 확인을 대화 창고 나는 변경 버튼을 배경 색상 백색에서 css 로 그러나 때 나는 프로젝트 실행 그것은 아직도 기본값을 표시합 회색 색깔을 적용한 후에도 css. 방법은 없을 강제로 변화 각 재료 색상이기 때문에 하나는 내가 사용한 작동하지 않습니다.
아래 코드는 파일에 대한 더 나은 이해
logout-dialog.component.html
<h1 mat-dialog-title class="logout-heading">Logout</h1>
<div mat-dialog-content>
<p class="message">Are you sure you want to logout ?</p>
</div>
<div mat-dialog-actions class="buttons-div">
<button mat-button class="cancel" (click)="cancel()">Cancel</button> //THIS BUTTON SHOULD HAVE WHITE BACKGROUND
<button mat-button class="logout" (click)="logout()">Ok</button>
</div>
로그아웃을 대화.구성 요소입니다.css
.cancel {
border: 1px solid #3f51b5;
color: #3f51b5;
background-color: #fff !important;
}
모든 솔루션을까요?