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
Added optional className param to JLIcon constructor #7840
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
@telamonian I'm not 100% sure this addition fits with your design and usage of |
@telamonian, thoughts on this change? |
e97a5ac
to
942566d
Compare
I'd prefer not to have this in (sorry, @ajbozarth!) The basic idea is that an icon having both a Instead, there's a private |
If you do need a CSS selector for one of the new icons, my advice is:
|
@ajbozarth Where did you run into trouble, exactly? Even before #7767, the |
@telamonian I took look through #7767 and I believe I'll just have to wait for you to finish and update my usage to match the final version. I'm pretty sure we're leveraging some of the remaining usage of |
References
This follows on @telamonian work with #7700
Code changes
Currently
JLIcon
s are initialized with a generatedclassName
based on the name. This means allclassName
s are prepended withjp-
, but this precludes the idea of extensions creating their ownJLIcon
s with project unique CSS selectors.User-facing changes
N/a
Backwards-incompatible changes
N/A