Skip to content

Do Not Use postcss-extend #340

@wesleyboar

Description

@wesleyboar

Goal

Background

Dependency postcss-extend is outdated, unsupported, esoteric, and causing Node warnings (see WP-280).

Direction

  1. Install PostCSS Mixins.
  2. Find/Replace old "extend" syntax with new "mixin" syntax.
    We could automate with postcss-classes-to-mixins, but uninstall after migration.
  3. Test all relevant code that TACC/Core-Styles demo lets us test.
  4. Test clients:
  5. 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

Labels

changesChanges user-facing behaviordeprecatesFlags user-facing behavior for removalrefactorRe-writes/structures code but retains behavior

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions