-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Inconsistent text color in multiline ion-item (ionic 2) #9081
Comments
Thanks for the issue! This is somewhat related to #8330. Currently you should be able to add a color and make it whatever color you'd like, but it doesn't work. Ideally I think we shouldn't be overriding colors of nested HTML elements, which would solve both issues, but it's up for discussion. :) |
- Adds test for item colors - Removes the color from native paragraph elements allowing colors to be passed Closes #9081
Submitted a PR to fix this: #9118 When it's merged I'll create a nightly release for you to try out and update the issue here. Thanks! |
* refactor(card): add color/mode classes to header, title, content - Remove native HTML element styling inside of cards (headings, paragraph) - Move the default color for the HTML elements to the content - Generate colors for the card itself, the header, the content, and the title using the color input - Add e2e test for card colors References #8330 * refactor(item): remove paragraph styles, update activated colors - Adds test for item colors - Removes the color from native paragraph elements allowing colors to be passed Closes #9081 * refactor(item): bring back paragraph color and override in the item loop * refactor(card): add back heading and paragraph colors and override in color loop
This should be fixed now, I released a nightly version of the framework
Thanks! |
I did not have time to test this, but the fix looks right when looking at the code. I will be needing this soon in my project and will test is then. Thanks for looking into it 👍 |
Short description of the problem:
Paragraphs in multiline ion-items do not have the same text color as single line ion-items.
What behavior are you expecting?
I would like paragraphs in two line ion-items to have the same color as single line ion-items.
Steps to reproduce:
The paragraph color gets explicitly set in these scss files:
Which Ionic Version? 2.x
The text was updated successfully, but these errors were encountered: