ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

feat(card): convert card-content to shadow DOM

Open brandyscarney opened this issue 1 month ago • 1 comments

Issue number: internal


What is the current behavior?

Card content has no encapsulation.

What is the new behavior?

Convert ion-card-content to Shadow DOM which improves consistency among components & CSP compatibility.

Does this introduce a breaking change?

  • [x] Yes
  • [ ] No

There should not be any breaking changes related to targeting inner elements since ion-card-content does not have any internal elements of its own. However, some user styles may break due to the removal of the card-content-{mode} class or changes in selector specificity.

brandyscarney avatar Oct 28 '25 19:10 brandyscarney