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

fix(typography): Exclude ion-item on a tags selector #8340

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

alan-agius4
Copy link
Contributor

Short description of what this resolves:

The fore color of the item is being overwritten when it's applied on an a tag because of the 2 directives (text and item) that are setting the "color".

Changes proposed in this pull request:

  • Exclude ion-item on a tag

Ionic Version: 2.x

Fixes: #8293

@alan-agius4
Copy link
Contributor Author

tried to create a Unit Test, but I am having issues
#8341

@manucorporat
Copy link
Contributor

manucorporat commented Oct 2, 2016

Regarding this issue. I am not sure this fix is scaling well.
We should also add :not([ion-fab]) for completeness.

This makes me think something is fundamentally wrong when we need a selector like:

a:not([ion-button]):not([ion-item]):not([ion-fab])

Maybe we should remove <a> completly from the Typography directive.

@brandyscarney thoughts?

@brandyscarney
Copy link
Member

Hmmm we'll have to discuss this @manucorporat. We could just style an anchor with primary by default but then they would have to change the color via sass, or we could add a unique attribute for anchor tags which could be used for all of our styles.

@alan-agius4
Copy link
Contributor Author

That's a good idea as well :-)

On Sunday, 2 October 2016, Brandy Carney [email protected] wrote:

Hmmm we'll have to discuss this @manucorporat
https://github.com/manucorporat. We could just style an anchor with
primary by default but then they would have to change the color via sass,
or we could add a unique attribute for anchor tags which could be used for
all of our styles.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#8340 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AQv-Wmr-EIjqp-HIKMRnJBvTbEeNFZi6ks5qwBqegaJpZM4KK09K
.

@alan-agius4 alan-agius4 closed this Oct 3, 2016
@alan-agius4 alan-agius4 reopened this Oct 3, 2016
@brandyscarney brandyscarney self-assigned this Oct 12, 2016
@brandyscarney brandyscarney merged commit b00860b into ionic-team:master Nov 9, 2016
@brandyscarney
Copy link
Member

Thanks! I'll add details about this on #8293 in a bit. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants