Power Portal Breadcrumb with FontAwesome arrow

Make your Power Portals breadcrumb look great by replacing the default arrow with a FontAwesome arrow icon!

Breadcrumb in Power Portals has an arrow that doesn’t look quite right. When we use Font Awesome for all other icons it’s best is this breadcrumb arrow is FontAwesome too.

Where does the arrow come from?

The arrows look like this in your portal out of the box.

If we look at the code that creates the breadcrumb – where is the arrow?

Open web template “Breadcrumbs” in your Portal Management App to inspect the code:

There are no arrows, icons, images or HTML that indicates where these arrows come from.

If we take a look at the breadcrumb through the browser developer tool we can see that it’s actually CSS ::before pseudo-element that brings the arrow.

As we can see from the reference in the developer tool, this comes from Bootstrap. We would never make changes to the Bootstrap-file, but this is what the styling looks like:

Let’s use the same mechanism as Bootstrap – but with an icon from FontAwesome.

Replace default arrow with FontAwesome Icon

If you are using FontAwesome in your portal already you can simply add this styling to your CSS stylesheet and the default HTML-arrow is replaced by the FontAwesome-icon “Arrow-right”

/* Replace Breadcrumb arrow with FontAwesome arrow icon */
.breadcrumb>li+li::before {
	font: var(--fa-font-solid);
	content: "\f105";
	padding: 0 5px;
	color: #666;
}Code language: CSS (css)

I use Portals Design Studio to upload a CSS file and paste this code in directly:

The breadcrumb will now look like this

Before:

After:

Branding Canvas Apps
Branding can take many forms and it's not always easy to know where to start. Follow my blog post to learn more about the different approaches to branding Canvas Apps: 
https://ulrikke.akerbak.com/2022/02/06/branding-canvas-power-apps/

The icon

This is the link to the icon I chose:

https://fontawesome.com/icons/angle-right?s=solid

This is where you find documentation on how this works from FontAwesome:

https://fontawesome.com/docs/web/setup/upgrade/pseudo-elements

Get new blog posts right to your inbox

Ulrikke Akerbæk Written by:

User Experience through digital interfaces, interaction, branding and visual design has been her passion and focus since she created her first website at age 14. She is a solution architect for Power Platform, specializing in Power Apps Portals. She is a Business Applications MVP and was named one of the top 50 women in tech in Norway in 2022. Currently working as Low Code Practice Lead at Itera.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *