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

CSS style naming collisions in plugins #18

Open
Brayden opened this issue Jun 19, 2024 · 0 comments
Open

CSS style naming collisions in plugins #18

Brayden opened this issue Jun 19, 2024 · 0 comments

Comments

@Brayden
Copy link
Member

Brayden commented Jun 19, 2024

Describe the bug
When creating plugins to use with the Universe editor, if any of the style names are the same as another DOM element on the page then a CSS style collision occurs.

To Reproduce

  1. Create a new plugin
  2. Put the following style (see below) in the css() object:
  3. Reload the Universe sandbox and see the editor not properly display
#container {
                padding: 16px;
                border-radius: 4px;
                background: var(--color-neutral-100);
                margin: 16px 0;
                position: absolute;
                top: 0;
                left: 0;
                width: 0;
                height: 0;
            }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant