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

Add Font Awesome 5.12 to the JupyterLab Manager #2698

Conversation

martinRenou
Copy link
Member

And update Font Awesome in the html-manager

@@ -1,6 +1,9 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import '@fortawesome/fontawesome-free/css/all.css';
import '@fortawesome/fontawesome-free/css/v4-shims.css';

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure where to put it, I'm of course open to better suggestions

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are importing other css in plugin.ts. Can we move these imports to there?

@@ -35,6 +35,7 @@
"test:unit:firefox:headless": "npm run test:unit:default -- --browsers=FirefoxHeadless"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.12.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasongrout
Copy link
Member

Can you use the minified css? https://github.com/FortAwesome/Font-Awesome/tree/d8db3d032d22e7a5e21f3b40905b7867be19bb02/js-packages/%40fortawesome/fontawesome-free/css

Signed-off-by: martinRenou <martin.renou@gmail.com>
@martinRenou
Copy link
Member Author

As discussed offline and in this PR, it might not be a good idea to remove Font-Awesome from JupyterLab and expect third-party extensions to ship Font-Awesome from now on. It might create Font-Awesome version conflicts, for instance, Font-Awesome suggest not to mix v4 and v5 (see https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4).

I will close this PR and open a PR on the JupyterLab repository, upgrading Font-Awesome to 5.12 there.

@martinRenou martinRenou deleted the add_fontawesome_jlab_manager branch January 10, 2020 09:30
@lock lock bot added the resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label May 20, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants