What you were expecting:
Can apply custom theme to LoadingIndicator component
What happened instead:
LoadingIndicator is default color. Does not pass styles to RefreshIconButton
It does pass the styles to the CircularProgress component while isLoading is true.
Steps to reproduce:
import { LoadingIndicator } from 'react-admin';
theme => ({
indicator: {
color: '#F00'
}
})
<LoadingIndicator className={classes.indicator} />
Environment
Thanks for reporting. Indeed only the CircularProgress is passed a className.
This feature will be part of the next release. You'll have to overide the classes passed to the LoadingIndicator using the key loadedIcon.
just wrapp it inside a div and pass the styles you want to that div, or inside the LoadingIndicator.d.ts file add this line "const style: PropTypes.Requireable