Skip to content

Bug: Altering variables with "@use with" can lead to issues when trying to configure values multiple times #183

@NickDJM

Description

@NickDJM

Summary

If you include a file using @use ... with(); you can run into an issue if multiple files try to alter the same source file (see width utilities in the navigation shelf package).

We might be able to resolve this issue, but it will require a huge flow change.

The Sass docs literally mention this use-case with altering values after members are loaded.

https://sass-lang.com/documentation/at-rules/use/

Steps to reproduce

  1. Add your own customizations to the width utilities
  2. Include the navigation-shelf package
  3. Break everything and be sad

Expected Behaviour

Multiple packages should be able to alter the same utility generation

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwaitingWaiting to implement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions