Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

-st-* declarations on imported class #2828

Open
idoros opened this issue Mar 2, 2023 · 0 comments
Open

-st-* declarations on imported class #2828

idoros opened this issue Mar 2, 2023 · 0 comments
Labels
bug Unexpected behavior or exception core Processing and transforming logic

Comments

@idoros
Copy link
Collaborator

idoros commented Mar 2, 2023

When importing a class from another stylesheet and using it in a selector (internally referred as an alias class) it's currently (v5) possible to set -st-global and -st-states on the class, although with an unscoped class warning diagnostic. This would be less important if it was an error and not a warning, since severity can be configured to ignore warnings.

expected

  • -st-global has no effect but would benefit from an -st-global not allowed on imported class diagnostic
  • -st-states should also have a similar diagnostic, but additionally should not add states that are picked up for transformation
  • imported class shouldn't be available as a custom pseudo-element for the importing stylesheet

see reproduction

@idoros idoros added bug Unexpected behavior or exception core Processing and transforming logic labels Mar 2, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Unexpected behavior or exception core Processing and transforming logic
Projects
None yet
Development

No branches or pull requests

1 participant