-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix fontawesome icon display #11328
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
fix fontawesome icon display #11328
Conversation
| font_class = ('fa-brands' if icon in brand_icons else 'fa-solid',) | ||
| icons[icon] = font_class + ('fa-fw',) if icon in fixed_width_icons else () | ||
| icon_class[icon] = ('fa-brands',) if icon in brand_icons else ('fa-solid',) | ||
| icon_class[icon] += ('fa-fw',) if icon in fixed_width_icons else () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line was the crucial change. there was a scope problem for the if/else, such that non-fixed-width icons were ending up with no classes.
| 'book', 'code-branch', 'newspaper', 'circle-question', 'quote-left', | ||
| # contrib guide: | ||
| 'bug', 'comment', 'hand-sparkles', 'magic', 'pencil-alt', 'remove-format', | ||
| 'universal-access', 'discourse', 'python', | ||
| 'bug-slash', 'comment', 'computer-mouse', 'hand-sparkles', 'pencil', | ||
| 'text-slash', 'universal-access', 'wand-magic-sparkles', | ||
| 'discourse', 'python', | ||
| ) | ||
| other_icons = ( | ||
| 'hand-paper', 'question', 'rocket', 'server', 'code', 'desktop', | ||
| 'terminal', 'cloud-download-alt', 'wrench', 'hourglass' | ||
| 'terminal', 'cloud-arrow-down', 'wrench', 'hourglass-half' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name changes here reflect changes between FontAwesome 5 and 6. This should hopefully make things more future-proof, as I think support for the old names goes away with FA7.
|
Merged and backported, thanks @drammock |
* upstream/main: fix epochs.plot_image for EMG data (mne-tools#11322) fix fontawesome icon display (mne-tools#11328) [DOC, MRG] fix/improve documentation of n_jobs for apply_function (mne-tools#11325) [MAINT, MRG] fix is_mesa (mne-tools#11313) BUG: Fix bug with parallel progress bars (mne-tools#11311) BUG: Fix bug with report replacement (mne-tools#11318) MAINT: Fix docs (mne-tools#11317) Fix typo in changelog (mne-tools#11315)
closes #11320