You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--ion-item-background-activated is not being applied #16585
I updated the PR to fix this so that this variable will update the --ripple-color of an item, but Material Design items do not use the .activated class for styling, and if they did it would interfere with the ripple effect. For example, if I set the --background-activated and the --ripple-color variable to use --ion-item-background-activated it would look like this on press:
But if we only updated the --ripple-color to use the global theme variable, it looks like the following:
For this reason I will only be updating the --ripple-color to be based on the global theme variable. If you'd like to use the .activated class in your application please continue setting it by class or by updating the variable for --background-activated. You may also want to update --ripple-color to be transparent in this case though as it will look like a "flash" or a solid color depending on if you try it before or after my PR: https://codepen.io/brandyscarney/pen/axRgpK
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.
Activity
wiggitamoo commentedon Dec 4, 2018
I temporarily got around the issue by adding this css
fix(item): use the global activated background for md
brandyscarney commentedon Dec 14, 2018
Thank you for the issue! I submitted a PR to fix that here: #16752
Just need to investigate updating the ripple color.
microwin168 commentedon Feb 25, 2019
I have same issue.
fix(item): change the ripple color based on the variable
brandyscarney commentedon Apr 24, 2019
I updated the PR to fix this so that this variable will update the
--ripple-colorof an item, but Material Design items do not use the.activatedclass for styling, and if they did it would interfere with the ripple effect. For example, if I set the--background-activatedand the--ripple-colorvariable to use--ion-item-background-activatedit would look like this on press:But if we only updated the
--ripple-colorto use the global theme variable, it looks like the following:For this reason I will only be updating the
--ripple-colorto be based on the global theme variable. If you'd like to use the.activatedclass in your application please continue setting it by class or by updating the variable for--background-activated. You may also want to update--ripple-colorto be transparent in this case though as it will look like a "flash" or a solid color depending on if you try it before or after my PR: https://codepen.io/brandyscarney/pen/axRgpKmerge release-4.4.0
chore(): resolve merge conflicts from older hotfix
4.4.0
chore(): resolve conflicts from older hotifx
merge release-4.4.1
ionitron-bot commentedon May 24, 2019
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.