Skip to content

Injected CSS Styles Aren't Prefixed #3

@michael-hawker

Description

@michael-hawker

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions