mat-datetimepicker icon indicating copy to clipboard operation
mat-datetimepicker copied to clipboard

No theming

Open Tommatheussen opened this issue 7 years ago • 3 comments

When I add the package without theming, I can not see any of the selected items on the left side of the panel, all the texts are set color: white. When I try to add the SCSS file, in an app without custom theming, an error is thrown during build time. (I'm currently using a pre-built theme from Angular material)

Could the SCSS file be created without a call to theming, or default texts to black?

screen shot 2018-01-15 at 14 20 26

Tommatheussen avatar Jan 15 '18 13:01 Tommatheussen

I agree that there is room for improvement here, but I am not sure I will find the time to work on this. My projects always have a custom theme, so there is no immediate need from my side.

For the moment you have to redefine the default theme in your sass file.

kuhnroyal avatar Jan 15 '18 13:01 kuhnroyal

I could not make it work by just importing the theme in my styles.css file but I was able to make it work by createing an scss file in my assets folder and including it in my angular.json file in the styles array. In any other case I got an error processing the scss files. The file I created is the same as https://github.com/kuhnroyal/mat-datetimepicker/blob/1.x/src/styles.scss except the first line @import '~@angular/material/_theming.scss';

sapabg avatar Nov 29 '18 08:11 sapabg

@sapabg thanks, it's work for me. But, i don't deleted first line

UrbanNuke avatar Aug 19 '19 11:08 UrbanNuke