reactjs - Material UI 1.0 beta, accent color raised button with white text -


i using new material-ui 1.0, want raised buttons accent color of app (#00c853) , text on button should white.

<button raised color="accent">button</button> 

the button green, text black , can not manage text color white.

how can this?

the button's text color automatically determined material ui depending on defined color palette. however, can use global style override set new text color buttons:

import { muithemeprovider, createmuitheme } 'material-ui/styles';  const theme = createmuitheme({   overrides: {     muibutton: {       raisedaccent: {         color: 'white !important'       }     }   } });  reactdom.render(   <muithemeprovider theme={theme}>     <yourapp/>   </muithemeprovider>,   document.queryselector('#app') ); 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -