2017-12-29 29 views
1

이 간단한 코드 : https://github.com/angular/material2/issues/4614텍스트 매트 도구 모음에서 보이지 않는

: screenshot

그것이 알고 버그 것 같다 :

<mat-toolbar color="primary"> 
    <button mat-raised-button>Basic</button> 
</mat-toolbar> 
<button mat-raised-button>Basic</button> 

나에게이 결과를 제공

깨끗한 해결 방법이 필요합니다. 누군가 나를 도울 수 있습니까? 감사합니다. .

+0

이것은 알려진 문제입니다. 도구 모음 안의 버튼을 흰색으로 보이시겠습니까? – Faisal

+0

사용자 지정 테마를 사용하고 있는데이 문제가 없습니다. 또한 각 재료 버전은 무엇입니까? –

+0

아니, 가능하다면 구성 요소의 scss에 더러운 검은 텍스트 색을 하드 코딩하지 않아도 텍스트 색상이 변경되지 않고 유지됩니다 (테마의 기본 텍스트 색상). –

답변

0

나는 /style.scss에 내 테마를 썼습니다. 기본 팔레트로 선택한 색상이 버그의 복제 가능성에 영향을줍니다. exemple 들어

, 이것은하지 않습니다 작품 :

$candy-app-primary: mat-palette($mat-indigo); 
$candy-app-accent: mat-palette($mat-pink, A200, A100, A400); 

// The warn palette is optional (defaults to red). 
$candy-app-warn: mat-palette($mat-red); 

// Create the theme object (a Sass map containing all of the palettes). 
$candy-app-theme: mat-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn); 

그러나이 작품 :

$candy-app-primary: mat-palette($mat-green); 
$candy-app-accent: mat-palette($mat-pink, A200, A100, A400); 

// The warn palette is optional (defaults to red). 
$candy-app-warn: mat-palette($mat-red); 

// Create the theme object (a Sass map containing all of the palettes). 
$candy-app-theme: mat-light-theme($candy-app-primary, $candy-app-accent, $candy-app-warn); 
는 지금 $ 매트 녹색 및 단지 변경된 $ 매트 - 인디고 내 텍스트가 표시 I입니다

screenshot

무슨 일 이니?