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

PCUI-Graph styles embed PCUI styles #45

Closed
willeastcott opened this issue Mar 20, 2023 · 1 comment · Fixed by #47
Closed

PCUI-Graph styles embed PCUI styles #45

willeastcott opened this issue Mar 20, 2023 · 1 comment · Fixed by #47
Assignees
Labels
bug Something isn't working

Comments

@willeastcott
Copy link
Contributor

willeastcott commented Mar 20, 2023

See here:

@import '../../node_modules/@playcanvas/pcui/dist/pcui-theme-green.scss';

This feels wrong to me. Shouldn't the application import PCUI and then import PCUI-Graph styles? Some problems:

  1. Currently, the PlayCanvas Editor has two copies of PCUI styles in the compiled CSS.
  2. This forces a user that's using PCUI-Graph to use the PCUI green theme.
@willeastcott willeastcott added the bug Something isn't working label Mar 20, 2023
@willeastcott
Copy link
Contributor Author

Observation:

  • With PCUI embedded: 3500 lines of SASS
  • Without PCUI embedded: 730 lines of SASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants