-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat(card): convert card-content to shadow DOM #30759
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
base: next
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
TODO font size does not work due to global styles
...mponents/card/test/basic/card.e2e.ts-snapshots/card-headings-ios-ltr-Mobile-Chrome-linux.png
Outdated
Show resolved
Hide resolved
thetaPC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I do lean towards removing the snapshots but that's not a blocker.
ShaneK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Only one very minor non-blocking question
Issue number: internal
What is the current behavior?
Card content has no encapsulation.
What is the new behavior?
Convert
ion-card-contentto Shadow DOM which improves consistency among components & CSP compatibility.Does this introduce a breaking change?
There should not be any breaking changes related to targeting inner elements since
ion-card-contentdoes not have any internal elements of its own. However, some user styles may break due to the removal of thecard-content-{mode}class or changes in selector specificity. Additionally, the styles targeting heading elements in card-content were removed. Users that wish to have custom styling for headings should add their own CSS targeting them.