Ionic-framework: Color broken in inner components inside shadow-dom

Created on 24 Jul 2018  路  10Comments  路  Source: ionic-team/ionic-framework

badgeColor in ion-tab does not work because ion-tab-button lives inside the shadow-dom of ion-tabs which prevents it from accessing the colors.css global styles

Most helpful comment

All 10 comments

@brandyscarney @manucorporat
Ref: #14830
Updated to core 10.9/4.0.0-alpha.13
Spinner color still not working.
Badge colors not working.
Animation OK.
Paused working.
https://aesvg.adaept.com/
https://github.com/peterennis/ae-svg-components/commit/ec88c41e7475e0a357a499c2ec3b2719ae2d0865
ion-spinner5

+1

+1 here's an example in a tabs application with badges. Primary/default color works, but not danger secondary, etc.
https://codepen.io/corysmc/pen/NLdNMj

Still not working, in beta 7, I can confirm.

same issue wiht beta 11

This is fundamentally a problem with shadow-dom, so we recommend to avoid using native shadow-dom for user's components that use ionic, otherwise color is likely to break.

For ion-tabs, we refactored it, so it's possible to customize. Closing!

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nick-The-Uncharted picture Nick-The-Uncharted  路  3Comments

giammaleoni picture giammaleoni  路  3Comments

alexbainbridge picture alexbainbridge  路  3Comments

alan-agius4 picture alan-agius4  路  3Comments

SebastianGiro picture SebastianGiro  路  3Comments