Deprecated: The color input has been removed from HTML elements

Hi, i’m getting about 40 logs with this message from:

\node_modules\ionic-angular\components\typography\typography.js:18

the full message i get in the console:

Deprecated: The color input has been removed from HTML elements. Please add the ion-text attribute in order to use the color input. For example: <a ion-text color="secondary">Link</a>

what’s causing this???

I was getting this when I had <h2 color="danger">Title</h2>, I changed it to <h2 ion-text color="danger">Title</h2> and it was gone.

I am guessing that the color attribute has been deprecated from some of the HTML elements. So need to add ion-text when you use the color attribute (except for buttons).

2 Likes

Thanks for your answer!, adding ion-text to <h*>, <p>, <a> solved it. Thank you very much!

1 Like