2017-11-08 6 views
0

RaisedButton의 배경색을 변경하고 싶지만 className을 사용할 때 RaisedButton이 자동 생성하는 div에 클래스 이름이 있습니다.ReactJS 및 material-ui

이 버튼이는 CSS를

.access-login{ 
    background-color: #d17817 !important; 
} 

어떤 아이디어를하다

<RaisedButton className="access-login" label="Acceder" type="submit"/> 

입니까?

내가 css 인라인을 추가하지 않고 클래스를 추가하고 싶습니다.

모두에게 감사

답변

0

주제로 장난없이 작동하는 빠른 방법은 이것이다 :

<RaisedButton backgroundColor="#d17817" label="Acceder" type="submit"/> 
+0

하지만이 클래스를 사용하려면? – Aceconhielo