Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic 2: Getting deprecated color warning on html elements #9406

Closed
daveshirman opened this issue Nov 29, 2016 · 3 comments
Closed

Ionic 2: Getting deprecated color warning on html elements #9406

daveshirman opened this issue Nov 29, 2016 · 3 comments

Comments

@daveshirman
Copy link

Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Putting an element on the page with a color attribute as of RC0 e.g:

<h2 color="someColorNameHere">Hello</h2>

Yields the warning 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>`

Expected behavior:
No warnings.
If we should be replacing the attributes as stated, then this should be reflected in the release notes as I can't see it mentioned anywhere.

@manucorporat
Copy link
Contributor

Just add ion-text

<h2 ion-text color="someColorNameHere">Hello</h2>

you right, we missed this one in the release notes.

@Ross-Rawlins
Copy link

this sets the background color and the text color of the element. Is this on purpose? usually I was a blue button with white text not both blue...

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants