-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Prefix CSS Classes for inspector #5422
Comments
The aframe-inspector is using stylus for the style, style is in https://github.com/aframevr/aframe-inspector/tree/master/src/style Adding a prefix to all used class is one possible fix for both issues, this requires changes in the react code to replace the className attribute where the class is used.
Potentially any of the above class may be an issue. Going through the aframe-inspector code base and renaming all that can be a bit of work. Just curious, what class had you issue with? |
Thanks for the break down |
@vincentfretin: Thanks, my "frame" uses, or better: used until now (global) I was able to change my theme, but I suspect that not everyone can do this, especially when using a CMS or SSG... |
Maybe worth apply inspector classes to just the children of a parent with the class |
@dmarcos: Issues also arise when the surrouding website (or CMS theme or whatever) provides a global There's also the option of running A-Frame inside an iframe to prevent collisions. |
What should we do here? |
@dmarcos: From what I've read about the possible options, which are:
I opt for using a React based CSS module approach, since this will take care of the naming. |
Yes, like @cmahnke said. For CSS Modules, I was talking about just importing css file and using webpack css-loader https://webpack.js.org/loaders/css-loader/ so nothing to do with React really or styled-components that is also a different thing. |
Thanks for the clarification @vincentfretin |
Thanks! So nothing to do on the A-Frame side? Can we close? |
@dmarcos: Well, it was my understanding that this is a change which is required on the inspector side... |
It's a change in aframe-inspector, probably a day or two of work to changes the style code. |
I'm working on changing the way we use fontawesome icons first aframevr/aframe-inspector#706 before starting any migration to css modules. |
Description:
Currently The A-Frame Inspector uses quite generic Class names like
static
andcontent
and certainly others as well, sine these are likely also used by page authors, please consider prefixing them.The text was updated successfully, but these errors were encountered: