mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
feat(css): add CSS utility classes to the ionic theme bundle to match other themes (#29974)
The default (iOS/MD) bundle is removed from the tests for the `ionic` theme because it adds global component styles that the `ionic` theme does not need. The missing utility files are imported, and padding/margin classes are generated from the design tokens, as many tests rely on `ion-padding` and `ion-text-center` being available. This change ensures the `ionic` theme includes the same classes offered in our documentation: https://ionicframework.com/docs/layout/css-utilities.
This commit is contained in:
@ -1 +1,11 @@
|
||||
@forward "../../foundations/ionic.utility";
|
||||
|
||||
// The padding utility is not included here because it
|
||||
// uses hardcoded pixel values. Instead, the margin
|
||||
// and padding related utilities are generated by
|
||||
// the design tokens.
|
||||
@import "../float-elements";
|
||||
@import "../text-alignment";
|
||||
@import "../text-transformation";
|
||||
@import "../flex-utils";
|
||||
@import "../display";
|
||||
|
||||
Reference in New Issue
Block a user