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

Injected CSS Styles Aren't Prefixed #3

Open
michael-hawker opened this issue Oct 20, 2017 · 1 comment
Open

Injected CSS Styles Aren't Prefixed #3

michael-hawker opened this issue Oct 20, 2017 · 1 comment
Assignees

Comments

@michael-hawker
Copy link

I needed to adjust the context menu's z-index, as one of my other components had a non-standard z-index greater than zero (you probably want a high z-index to begin with).

I noticed that I could fix this by adding to the .fixed CSS class in my own stylesheet, but that's a pretty common name. Since the library is injecting its own styles, they should be prefixed with the library name so that there's less chance for collisions with the styles of whoever's consuming it.

e.g. use .hsc-menu-fixed here

@michitaro michitaro self-assigned this Oct 20, 2017
@michitaro
Copy link
Owner

I missed putting a necessary "scoped" property.
bde85e6

I hope fix the problem.

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

2 participants