-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
feat(css): add CSS utility classes to the ionic theme bundle to match other themes #29974
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
9cdef3a
to
57f7487
Compare
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 file includes the CSS utilities documented here: https://ionicframework.com/docs/layout/css-utilities
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.
I think this is g2g
5fae4cc
to
b1588bf
Compare
const defaultSpaceUtilityClasses = generateDefaultSpaceUtilityClasses(); | ||
otherUtilityClasses.push(defaultSpaceUtilityClasses); |
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.
These were the only lines added - the rest is formatting
Requesting re-review because I changed the scope of this PR. |
LGTM 🚀 |
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
Issue number: internal
What is the current behavior?
The
ionic
theme includes the default (iOS/MD) bundle in the tests. Additionally, theionic
theme bundle is missing CSS utility classes provided by the default bundle, so removing that bundle causes issues in several tests.What is the new behavior?
The default bundle is removed from the tests for the
ionic
theme because it adds global component styles that theionic
theme does not need. The missing utility files are imported, and padding/margin classes are generated from the design tokens, as many tests rely onion-padding
andion-text-center
being available. This update ensures theionic
theme includes the same classes offered in our documentation: https://ionicframework.com/docs/layout/css-utilities.Does this introduce a breaking change?