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

HTML tags for styling in topbar-text #48

Open
jeffyjefflabs opened this issue Sep 8, 2020 · 1 comment
Open

HTML tags for styling in topbar-text #48

jeffyjefflabs opened this issue Sep 8, 2020 · 1 comment

Comments

@jeffyjefflabs
Copy link

Would it be possible to support HTML tags in topbar-text to style the text? My workplace has a custom extension for the classic notebook UI to add some dynamic warning banners -- topbar-text would be perfect for this in Lab but we'd love to be able to use bold, font colors, etc.

@jtpio
Copy link
Member

jtpio commented Sep 10, 2020

Thanks @jeffyjefflabs.

It looks like it should be possible to set the HTML directly here with innerHTML to achieve this:

https://github.com/jtpio/jupyterlab-topbar/blob/167df747d2f117d6172740e331702327bdf413f9/packages/jupyterlab-topbar-text/src/index.ts#L41

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