question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Backstage icons are not replaced by the ones provided in options when creating the app

See original GitHub issue

According to this comment here https://github.com/backstage/backstage/issues/7443#issuecomment-938115930 we should be able to override the app icons. This is not happening.

Expected Behavior

The icons should be overridden

Current Behavior

The icons are not overridden

Steps to Reproduce

Include icons object in the createApp options like this, for example:

import BusinessIcon from '@material-ui/icons/Business';
import VoicemailIcon from '@material-ui/icons/Voicemail';

createApp({
  ...
  icons: {
    business: BusinessIcon,
    email: VoicemailIcon // this one here is not working
  }
  ...
})

The business icon works fine because it is a non-existing one, a new one from the backstage perspective. However, the email icon already exists and the backstage is not picking up the newly assigned icon.

I’ve tried to override a couple of the available keys from here https://github.com/backstage/backstage/blob/f00e7ababefa8abd4095a7c712583898dcbd864c/packages/core-app-api/src/app/icons.tsx#L57 but no luck

Context

I’m trying to customize the app icons, therefore, overriding some of the existing ones should be possible

Your Environment

  • NodeJS Version (v14): v14.17.5
  • Operating System and Version (e.g. Ubuntu 14.04): Windows 10
  • Browser Information: Chrome

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jhaalscommented, Dec 3, 2021

I’m going to close this issue specifically as we’ve figured out that those are currently hardcoded. Feel free to raise a specific issue about replacing the hardcoded icons or we are happy to accept PRs that addresses this.

Thanks!

0reactions
ProticMcommented, Dec 1, 2021

Ok, so it seems that we cannot do much until the inner icons are switched/used from that location

Read more comments on GitHub >

github_iconTop Results From Across the Web

Customize the look-and-feel of your App - Backstage.io
You might want to use this method if you have an icon you want to use in several locations. Note: If the icon...
Read more >
Media Locker - Backstage + StarNow Help Center
With the Media Locker you can upload and store your photos and headshots, video and audio reels, and resumes and documents all in...
Read more >
Release notes for Windows - Zoom Support
Additionally, only one instance of the publicly available Zoom app can be ... in terms of the order of icons as well as...
Read more >
Customize the Quick Access Toolbar - Microsoft Support
You can move the Quick Access Toolbar from one of the two possible ... Commands that are no longer visible in the app...
Read more >
Workspace theme and graphics - SpotMe knowledge base
Link or app content icons ... Although we recommend that you use the icon libraries that are already available in Backstage, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found