-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
changesChanges user-facing behaviorChanges user-facing behaviordeprecatesFlags user-facing behavior for removalFlags user-facing behavior for removalrefactorRe-writes/structures code but retains behaviorRe-writes/structures code but retains behavior
Description
Goal
- Do not use postcss-extend.
- Do not break the code that relies on @extend.
Background
Dependency postcss-extend is outdated, unsupported, esoteric, and causing Node warnings (see WP-280).
Direction
- Install PostCSS Mixins.
- Find/Replace old "extend" syntax with new "mixin" syntax.
We could automate with postcss-classes-to-mixins, but uninstall after migration. - Test all relevant code that TACC/Core-Styles demo lets us test.
- Test clients:
- Use on clients:
Reference
Replace
.x-truncate--many-lines {
...
}and
... {
@extend .x-truncate--many-lines;
}With
@define-mixin x-truncate--many-lines {
...
}and
... {
@mixin x-truncate--many-lines;
}Metadata
Metadata
Assignees
Labels
changesChanges user-facing behaviorChanges user-facing behaviordeprecatesFlags user-facing behavior for removalFlags user-facing behavior for removalrefactorRe-writes/structures code but retains behaviorRe-writes/structures code but retains behavior
Type
Projects
Status
In progress