0

I'm a new user to Angular 2 and Angular Material 2, I try to generate a dialog following some tutorials but when show dialog this appear darker.

enter image description here

Any help me is really helpful.

Fernando Bernal
  • 99
  • 2
  • 11
  • 1
    A few possibilities: you need to provide a core theme for angular material components as descripted here: https://material.angular.io/guide/theming. Also, is it possible you set your dialog to have a transparent background? Because the dark background overlay that naturally appears behind the dialog would make your transparent background appear even darker. – John May 04 '17 at 01:27
  • 1
    @John Thanks, I not added correctly the core theme on my global style. – Fernando Bernal May 04 '17 at 01:38

1 Answers1

0

Hoisted from the comments: the problem was that there wasn't a core theme for angular material components as descripted here.

Splaktar
  • 5,506
  • 5
  • 43
  • 74
John
  • 9,249
  • 5
  • 44
  • 76