Skip to content
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

Do Not Use postcss-extend #340

Open
wesleyboar opened this issue Apr 22, 2024 · 1 comment
Open

Do Not Use postcss-extend #340

wesleyboar opened this issue Apr 22, 2024 · 1 comment
Assignees

Comments

@wesleyboar
Copy link
Member

wesleyboar commented Apr 22, 2024

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;
}
@wesleyboar
Copy link
Member Author

Status

  • message
  • truncate, untruncate
  • link
  • tabs
  • layout
  • tabs
  • grid
  • figure
  • center
  • blockquote
  • article-link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

No branches or pull requests

2 participants